You are here: Re: password checking « PHP Programming Language « IT news, forums, messages
Re: password checking

Posted by d on 10/22/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

 

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

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