Re: Sessions, ending and starting new with just a click

From: Date: Thu, 04 Dec 2003 02:23:43 +0000
Subject: Re: Sessions, ending and starting new with just a click
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-171757@lists.php.net to get a copy of this message
Robert Sossomon wrote:
Hey guys and gals, I am working on a shopping cart and using some code to write it from 2 temp databases to a full end databases (which will then be used via PERL to send to an archaic order system) but right now I need to come up with a way to clear their current session ID after finalizing the order and then dropping them into the new session variable so they can start a new order.
Is register_globals ON or OFF. If it's OFF, you can just do a simple $_SESSION = array(); to clear the session. No real need to assign another session id (although you could do that with session_regenerate_id()). -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals – www.phparch.com

« previous php.general (#171757) next »