Posted by Marek Kilimajer on 05/16/05 16:24
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.
Navigation:
[Reply to this message]
|