note 71666 added to function.session-start

From: Date: Sun, 10 Dec 2006 22:34:40 +0000
Subject: note 71666 added to function.session-start
Groups: php.notes 
Request: Send a blank email to php-notes+get-120494@lists.php.net to get a copy of this message
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') ---- Server IP: 85.116.0.130 Probable Submitter: 80.41.8.157 ---- Manual Page -- http://www.php.net/manual/en/function.session-start.php Edit -- https://master.php.net/note/edit/71666 Del: integrated -- https://master.php.net/note/delete/71666/integrated Del: useless -- https://master.php.net/note/delete/71666/useless Del: bad code -- https://master.php.net/note/delete/71666/bad+code Del: spam -- https://master.php.net/note/delete/71666/spam Del: non-english -- https://master.php.net/note/delete/71666/non-english Del: in docs -- https://master.php.net/note/delete/71666/in+docs Del: other reasons-- https://master.php.net/note/delete/71666 Reject -- https://master.php.net/note/reject/71666 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#120494) next »