Completly destroy a session and get a new session ID?
Posted on 2004-11-10
Ok i am working with sessions for the first time on my latest php project! i had no problems setting and using all my variables, now the problem is i want to destroy the session and start over..
i used the commands
$_SESSION = array();
This works as expected. Now the problem that i am having is that it appears that php then reuses the old session ID for this new session. For my current project this doesn't work because i saved values to a temp database based on the sessionID and when it gets to that part of the program it pulls up all the data from the last session...
Any Help is greatly Appreciated!