You are here: Re: [PHP] Re-initiating an autostarted session « PHP « IT news, forums, messages
Re: [PHP] Re-initiating an autostarted session

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация