faqts : Computers : Programming : Languages : PHP : Common Problems : Sessions and State

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

20 of 24 people (83%) answered Yes
Recently 9 of 10 people (90%) answered Yes

Entry

Sessions didn't work when using header()

May 11th, 2001 14:59
Rafael Angulo, Anurat Waewkoksoong, Ben Udall,


>Sessions didn't work when using header()
You have to pass the session variable by hand when you are using:
Header(location:"www.your_url.com"); so the next page can catch the 
session id. 
To do this add this line to the URL.
Header ("location:www.your_url.com?".SID);
SID contains the session id needed for keep the session away.