Jump to content

[SOLVED] session_start deadlock?


xenophobia

Recommended Posts

I see this bug here:

http://bugs.php.net/bug.php?id=42064

 

Yea. damn right, im running php win server.

 

I'm developing ajax application whereby im sending 2 request while the 1st request was waiting response. I think that's why it hang.. deadlock..

If you are using the standard built-in session file save handler, you will generally only experience problems when the file system has a problem creating or opening the session data files.

 

Some possible causes - there is no free disk space or the maximum number of file in a folder has been exceeded or there is some disk error occurring or multiple requests to the web server are attempting to open the same session data file and they cannot due to file locking. This last possibility occurs when a web page uses frames/iframes or has media on a web page that that is uses sessions along with the web page itself.

 

To solve the file locking problem, you generally need to use session_write_close() to release the session data file before the end of page processing does it. Edit: Which is the suggest solution mentioned in the bug report, which is actually due to the operation of the file system and is not a bug.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.