Hi All,
Can anybody tell me why my session id is always different when i will close the browser.
I'm developing a site, actually functionality to count all unique opened sessions within 24h. As i mentioned my problem is when i close my browser, open again and goto site my session id is automatically regenerated with new (i'm expecting the old one).
Can anybody help me?
thanks
Session ID question
Moderator: General Moderators
Re: Session ID question
It would be bad if you open a browser and got a previously used session ID. Why would you expect the previous session ID to be reused?my session id is automatically regenerated with new (i'm expecting the old one).
- flying_circus
- Forum Regular
- Posts: 732
- Joined: Wed Mar 05, 2008 10:23 pm
- Location: Sunriver, OR
Re: Session ID question
Look into the session.cookie_lifetime parameter. By default it is set to '0' which indicates the cookie should be terminated upon closing of the browser window. You can change it to '86400' for a 24h lifetime (60sec * 60min * 24hr).