Re: Re-initiating an autostarted session
| From: | Marek Kilimajer | Date: | Mon, 16 May 2005 13:24:04 +0000 |
| Subject: | Re: Re-initiating an autostarted session | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-215285@lists.php.net to get a copy of this message | ||
Ville Mattila wrote:
Marek Kilimajer wrote:You are right, unset($_COOKIES) does not remove cookie from the client. You need to unset() it so that your next call to session_start() does not use the same $_COOKIES[session_name()]. session_start will generate new session id if there is not one set in the request variables.the cookie variable still persists. you need to uset($_REQUEST[session_name()], $_COOKIES[session_name()] ...);Thanks Marek for a reply. I'm not sure but I have been thinking that unset($_COOKIES) does not destroy the cookie from the client side but just unsets the cookie variable from the script? My target is to destroy the cookie from the client or send a new session id there.