session related problem
Moderator: General Moderators
session related problem
hi
in my project after logging out if i relogin then session id doesn't change.it remains previous one.i have destroyed all session variables when logging out.After tht when i recreate the session then i dont get new session id.
can nyone tell how to generate new session id.
thanks
in my project after logging out if i relogin then session id doesn't change.it remains previous one.i have destroyed all session variables when logging out.After tht when i recreate the session then i dont get new session id.
can nyone tell how to generate new session id.
thanks
- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
destroying the session cookie..
you could create your own session handler..
some research:
http://us3.php.net/manual/en/function.s ... andler.php
search through the forums for "session +handler" (leave the plus)
you could create your own session handler..
some research:
http://us3.php.net/manual/en/function.s ... andler.php
search through the forums for "session +handler" (leave the plus)
- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
if the browser passes no id, or an incorrect, or non-existant id, the id is typically generated..
In the case where the browser doesn't keep cookies, or you have trans_id on things get a little sticky.. as php will tweak your finalized html code to have the session id incorporated.
Why is there such an extreme need to create a new session id, when trashing the data hooked to the current one, effectively makes it a new one?
In the case where the browser doesn't keep cookies, or you have trans_id on things get a little sticky.. as php will tweak your finalized html code to have the session id incorporated.
Why is there such an extreme need to create a new session id, when trashing the data hooked to the current one, effectively makes it a new one?