Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Session from ASP to PHP

Status
Not open for further replies.

RemoteSilicon

Programmer
Feb 13, 2001
45
GB
Hello
I am having a very complex situation here. I have created a few session variables on an ASP page on one site say "A Site". It is hosted on Windows 2000 Server. I want the next page to be a PHP page of another site hosted on a different server i.e Linux. I want to read the session variables on PHP page. How am I going to do that? Plz help
 
the only way i can think of is to send the session variables in the querysting to the php page.

something like this:
Code:
Dim strPHPURL
strPHPURL = "[URL unfurl="true"]http://www.yoursite.com/index.php?"[/URL]

Dim strQuery
For Each strSession In Session.Contents
	strQuery = strQuery & strSession &"="& Session(strSession) &"&"
Next

Response.Redirect(strPHPURL & strQuery)
(-:
 
Thanks for the reply stakadush. But the information I want to send is username and password. It can't be appended to the query string.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top