Re: Quick question regarding $_SESSION and header()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Dec 11, 2008 at 14:01, Ólafur Waage <olafurw@xxxxxxxxx> wrote:
> I should be able to set a session var and then do a header redirect
> right? Small bug regarding that and i just need to be sure.

    This isn't a bug in PHP, it's actually in adherance with HTTP
standards (and current browser standards).  Prior to doing a header()
redirect, you have to force the cookie to be written with
session_write_close().

-- 
</Daniel P. Brown>
http://www.parasane.net/
daniel.brown@xxxxxxxxxxxx || danbrown@xxxxxxx
50% Off Hosting! http://www.pilotpig.net/specials.php

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



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux