note 90889 added to function.session-write-close

From: Date: Thu, 14 May 2009 20:06:56 +0000
Subject: note 90889 added to function.session-write-close
Groups: php.notes 
Request: Send a blank email to php-notes+get-154611@lists.php.net to get a copy of this message
Using a SQL Server database and Windows Server 2003, if you use session_write_close() prior to a header() call, and it still appears to freeze up your session, check to make sure that you are not in the middle of a transaction. I noticed that by starting a transaction, executing some queries, attempting to write close the session and then redirecting without rolling back or committing that transaction, your session may freeze up. Just like what you may experience if you attempt to redirect with header() without first calling session_write_close(). ---- Server IP: 66.207.199.35 Probable Submitter: 204.50.234.206 ---- Manual Page -- http://www.php.net/manual/en/function.session-write-close.php Edit -- https://master.php.net/note/edit/90889 Del: integrated -- https://master.php.net/note/delete/90889/integrated Del: useless -- https://master.php.net/note/delete/90889/useless Del: bad code -- https://master.php.net/note/delete/90889/bad+code Del: spam -- https://master.php.net/note/delete/90889/spam Del: non-english -- https://master.php.net/note/delete/90889/non-english Del: in docs -- https://master.php.net/note/delete/90889/in+docs Del: other reasons-- https://master.php.net/note/delete/90889 Reject -- https://master.php.net/note/reject/90889 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#154611) next »