note 100311 added to function.session-write-close

From: Date: Thu, 07 Oct 2010 12:34:33 +0000
Subject: note 100311 added to function.session-write-close
Groups: php.notes 
Request: Send a blank email to php-notes+get-173051@lists.php.net to get a copy of this message
I was having problems with $_SESSION information not being written or being lost in a seemingly random way. There was a Location: call being made deep in a Zend OAuth module, I am using an IIS server with PHP as a CGI, etc. The answer was simply that you need to have the domain be consistent for sessions to work consistently. In my case, I was switching back and forth between www.MYDOMAIN.com:888 and MYDOMAIN.com:888. The unusual port, the hidden Location: call, the handoff with OAuth, etc all served to confuse me, but the intermitent error was caused by this simple goof of keeping the domain consistent. ---- Server IP: 69.147.83.197 Probable Submitter: 72.167.255.180 ---- Manual Page -- http://www.php.net/manual/en/function.session-write-close.php Edit -- https://master.php.net/note/edit/100311 Del: integrated -- https://master.php.net/note/delete/100311/integrated Del: useless -- https://master.php.net/note/delete/100311/useless Del: bad code -- https://master.php.net/note/delete/100311/bad+code Del: spam -- https://master.php.net/note/delete/100311/spam Del: non-english -- https://master.php.net/note/delete/100311/non-english Del: in docs -- https://master.php.net/note/delete/100311/in+docs Del: other reasons-- https://master.php.net/note/delete/100311 Reject -- https://master.php.net/note/reject/100311 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#173051) next »