xenophobia Posted July 26, 2009 Share Posted July 26, 2009 Does anyone know under what circumstances that session_start() will hang and never proceed with the execution below it? If yes, please tell me what are the solutions? Link to comment https://forums.phpfreaks.com/topic/167467-solved-session_start-deadlock/ Share on other sites More sharing options...
xenophobia Posted July 26, 2009 Author Share Posted July 26, 2009 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.. Link to comment https://forums.phpfreaks.com/topic/167467-solved-session_start-deadlock/#findComment-883037 Share on other sites More sharing options...
PFMaBiSmAd Posted July 26, 2009 Share Posted July 26, 2009 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. Link to comment https://forums.phpfreaks.com/topic/167467-solved-session_start-deadlock/#findComment-883039 Share on other sites More sharing options...
xenophobia Posted July 26, 2009 Author Share Posted July 26, 2009 I know i gonna get my answer here.. =] Thank you!!! Link to comment https://forums.phpfreaks.com/topic/167467-solved-session_start-deadlock/#findComment-883047 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.