Justtechjobs.com Find a programming school near you






Online Campus Both


php-general | 2005051

Re: [PHP] Re-initiating an autostarted session From: Leif Gregory (Leifg <email protected>)
Date: 05/11/05

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

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