note 71666 deleted from function.session-start by peehaa

From: Date: Fri, 09 Dec 2016 22:07:16 +0000
Subject: note 71666 deleted from function.session-start by peehaa
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-208325@lists.php.net to get a copy of this message
Note Submitter: mike at mikebird dot co dot uk ---- It seems that the session file is opened exclusively. On some occasions (Windows) I have found that the file lock is not released properly for whatever reason, therefore causing session_start() to hang infinitely on any future script executions. My way round this problem was to use session_set_save_handler() and make sure the write function used fopen($file, 'w') instead of fopen($file, 'x')

« previous php.notes (#208325) next »