Re: Re-initiating an autostarted session

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ville Mattila wrote:
Marek Kilimajer wrote:

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.

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.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux