Topic: strange sessions, getting more and more but not getting cleared (Read 915 times)
OMG!I am geek
Posts: 57
394 credits Members referred : 0
« on: May 25, 2007, 06:00:34 PM »
In relation to the session_handler and the session Starter function (start_session) I noticed some strange behavior as it seem to me. I'm even not sure where to include the session Starter. I've put it on top of session_handler.php instead of session_start().
Now the strange things: - a session starts (without ses_value) even if the user has put the wrong password. - if a user session was killed in the session table and the user logout a full user session will be created including ses_vallue. - if a session with session_start() as usual is called in session_handler.php a cookie will be created and the session will never end. - if a session with start_session() and the start_session fuction is called in session_handler.php a cookie will be created and the session end at the defined session.gc_maxlifetime in php.ini. - in that case if the user is loged out automaticaly one more session is created and is cleared not automaticly as I can see. If a user log out and in like this more and more sessions are created but not cleared.
Is that a fault of my usage of the session starter and the session_handler? Do you notice the same things? If that is only in my case asI described how do I use the session_handler and the session Starter correctly.
« Last Edit: May 25, 2007, 07:17:21 PM by tomz »
Moderator Community Supporter?
Jedai Sword Master
Gender:
Posts: 6440
39464 credits Members referred : 374
It's time to use PHP5!
« Reply #1 on: May 25, 2007, 07:34:58 PM »
maybe you shpuld read the manual about the sessions to understand more how it works, most of your questions are not related to this class
maybe you shpuld read the manual about the sessions to understand more how it works, most of your questions are not related to this class
I've read the manual about this class but my question was if you can notice the same and how the session Starter to include correctly. Maybe someone has an example.
Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=6619