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 11:13

Ville Mattila wrote:
> Leif Gregory wrote:
>
>> session_destroy();
>> session_start();
>> session_write_close();
>> Header("Location: ...");
>> exit;
>>
>> I never tried regenerate. Just started a new session again.
>
>
> Hi Leif!
>
> Thanks for your reply. For some strange reason, this works not for me.
> The session cookie will not be overwritten and the user won't get a new
> session id - even all the session data from the server is destroyed. I
> tried to unset the session cookie manually (setcookie( session_name()
> ,"",0,"/");) but without results.

the cookie variable still persists. you need to
uset($_REQUEST[session_name()], $_COOKIES[session_name()] ...);

>
> Thanks also Mr. Jason Barrett for your reply, but I couldn't manage to
> get the session regeneration work.

 

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

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