note 96358 added to function.session-save-path

From: Date: Tue, 23 Feb 2010 01:29:43 +0000
Subject: note 96358 added to function.session-save-path
Groups: php.notes 
Request: Send a blank email to php-notes+get-166271@lists.php.net to get a copy of this message
After a search for the cause of a issue causing users to have to login twice, I've found a call to session_save_path() was the culprit. What was happening was: the session save path was set, a session was opened, some variables were set and the session was closed. This was resulting in an empty file in the specified session save path and of course no session data on the next page load. Oddly, on the second attempt the data was saved as expected. I found that removing the call to session_save_path() resolved the issue. My final solution was to replace the call to session_save_path($path) with an equivalent call to ini_set('session.save_path', $path). ---- Server IP: 66.207.199.35 Probable Submitter: 24.67.132.88 ---- Manual Page -- http://www.php.net/manual/en/function.session-save-path.php Edit -- https://master.php.net/note/edit/96358 Del: integrated -- https://master.php.net/note/delete/96358/integrated Del: useless -- https://master.php.net/note/delete/96358/useless Del: bad code -- https://master.php.net/note/delete/96358/bad+code Del: spam -- https://master.php.net/note/delete/96358/spam Del: non-english -- https://master.php.net/note/delete/96358/non-english Del: in docs -- https://master.php.net/note/delete/96358/in+docs Del: other reasons-- https://master.php.net/note/delete/96358 Reject -- https://master.php.net/note/reject/96358 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#166271) next »