Re: Re: Quick question regarding $_SESSION and header()
| From: | Daniel Brown | Date: | Thu, 11 Dec 2008 19:33:32 +0000 |
| Subject: | Re: Re: Quick question regarding $_SESSION and header() | ||
| References: | 1 2 3 | Groups: | php.general php.qa |
| Request: | Send a blank email to php-general+get-284501@lists.php.net to get a copy of this message | ||
(Forwarding back to PHP General for the archives.)
On Thu, Dec 11, 2008 at 14:31, Ólafur Waage <olafurw@gmail.com> wrote:
> Its fixed, thanks guys :)
>
> On Thu, Dec 11, 2008 at 7:16 PM, Daniel Brown <danbrown@php.net> wrote:
>> On Thu, Dec 11, 2008 at 14:01, Ólafur Waage <olafurw@gmail.com> 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@parasane.net || danbrown@php.net
>> 50% Off Hosting! http://www.pilotpig.net/specials.php
>>
>
> --
> PHP Quality Assurance Mailing List <http://www.php.net/>
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
</Daniel P. Brown>
http://www.parasane.net/
daniel.brown@parasane.net || danbrown@php.net
50% Off Hosting! http://www.pilotpig.net/specials.php