You are here: Re: Executing PHP Tasks While Letting A User Continue To Browse? « All PHP « IT news, forums, messages
Re: Executing PHP Tasks While Letting A User Continue To Browse?

Posted by Andy Jeffries on 04/26/06 23:09

On Wed, 26 Apr 2006 14:14:26 -0500, Good Man wrote:
>> Let me guess, you use session_start() near the top of every page (maybe
>> through a include auto_prepended).
>
> Why yes, I certainly do!
>
>> This has bitten me before, if you do that, other requests to open that
>> session file will block until the other request closes the session file
>> (i.e. at the end of your download script).
>>
>> You could force the session finished/closed before doing any
>> long/non-interactive tasks. This releases the lock on the session file
>> for that session ID.
>
> As they say on those wacky tv-shows, "you the man".
>
> Much thanks!!!!!

No worries...

Glad that my previous misfortune has now helped someone else (I spent AGES
trying to track down why that was happening).

Cheers,


Andy

--
Andy Jeffries MBCS CITP ZCE | gPHPEdit Lead Developer
http://www.gphpedit.org | PHP editor for Gnome 2
http://www.andyjeffries.co.uk | Personal site and photos

 

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

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