|
Posted by d on 10/02/76 11:42
"Rich" <rflack@gmail.com> wrote in message
news:RZXRf.36407$wl.15603@text.news.blueyonder.co.uk...
> "d" <d@example.com> wrote in message
> news:KGXRf.36398$wl.11183@text.news.blueyonder.co.uk...
> <snip>
>> Also, as you are using sessions, you should call session_write_close()
>> before you call header("location:...") - not doing so can cause serious
>> problems on some platforms.
>
> Dave,
>
> Sorry to hijack the thread, but why would not calling
> session_write_close() cause a problem on some platforms?
>
> Cheers,
> Rich (Still learning)
No problem :)
Due to the way PHP's default session handler locks the session data file, if
the browser is re-directed to the new page *before* closing the connection
to the current script, the second script will be waiting for the first
script to close, and the first script is (apparently) not closed until the
second one is loaded. Essentially, I found that nearly all mac clients
would hang on issuing a Location: header. As soon as I added that command,
the problems disappeared. Windows was never affected, btw.
dave
[Back to original message]
|