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?

8 of 11 people (73%) answered Yes
Recently 7 of 10 people (70%) answered Yes


How can I disconnect from session one and start session two (within a single page), without destroying session one's data?

Jan 21st, 2008 16:59
Tim Stumbaugh, Guest,

The function session_id().
To set an id, use session_id($string_with_the_id_you_want);
To get the current id, store the value of session_id();