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

Posted by Leif Gregory on 05/11/05 23:07

Hello Ville,

Wednesday, May 11, 2005, 12:32:07 PM, you wrote:

V> session_destroy();
V> session_regenerate_id();
V> session_write_close();
V> Header("Location: ...");
V> exit;

I honestly don't know if it's the right way, but I ran into a similar
issue a while back. I did it this way:

session_destroy();
session_start();
session_write_close();
Header("Location: ...");
exit;

I never tried regenerate. Just started a new session again.


--
Leif (TB lists moderator and fellow end user).

Using The Bat! 3.5 Return RC7 under Windows XP 5.1
Build 2600 Service Pack 2 on a Pentium 4 2GHz with 512MB

 

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

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