Reply to Re: sessions and redirecting in opera

Your name:

Reply:


Posted by amygdala on 08/10/07 17:09

"Rik" <luiheidsgoeroe@hotmail.com> schreef in bericht
news:op.twuq52o5qnv3q9@metallium...
> On Fri, 10 Aug 2007 18:31:55 +0200, axlq <axlq@spamcop.net> wrote:
>
>> In article <46bc8925$0$25485$9a622dc7@news.kpnplanet.nl>,
>> amygdala <noreply@noreply.com> wrote:
>>>
>>> "amygdala" <noreply@noreply.com> schreef in bericht
>>> news:46bc8754$0$25476$9a622dc7@news.kpnplanet.nl...
>>>> Hello all,
>>>
>>> <snip>
>>>
>>> PS.: I forgot to mention that, before redirecting, I *do* let PHP
>>> perform a
>>> session_write_close().
>>
>> Why?
>
> A good reason would be several concurrent requests (which also might be
> stylesheets, javascript, images, the lot), a website in which there are
> 'heavy' pages (take a long time to load), and users are likely to have
> several windows open.
>
> It is not strictly necessary to use session_write_close(), but a lot of
> loading problems in a PHP-heavy site can be avoided with it. And if you're
> done with a session, why not? session-closing/database-closing/unsetting
> variables are just the kind of thing that might improve performance when
> the server is stretched.
>
> F'upped to c.l.php
> --
> Rik Wasmus

Exactly. To top it off, I implemented this because I assumed that by not
doing so, Opera's session might not be commited before the redirect.

[Back to original 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

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