[thelist] Saving and Destroying Session IDs and Vars with PHP5
tim
hyperlinkage at gmail.com
Tue Mar 6 13:48:37 CST 2007
Pringle, Ron wrote:
> After a successful submission, I want to destroy all the session
> variables, but I need to leave the session id in place.
Why do you need to keep the same session ID?
Anyway, you can probably just store the current session ID in a variable::
// Get the current ID
$sessionId = session_id();
// Kill the session
session_destroy();
// Start a new session with the old ID
session_id( $sessionId );
session_start();
More information about the thelist
mailing list