note 77918 added to function.session-start

From: Date: Wed, 19 Sep 2007 23:32:05 +0000
Subject: note 77918 added to function.session-start
Groups: php.notes 
Request: Send a blank email to php-notes+get-130612@lists.php.net to get a copy of this message
At work we had an odd warning, "Cannot send session cache limiter - headers already sent". In the following: header('meta:1'); session_start(); the first header went across fine, but the session_start died with the warning. What was happening was that the session contained an object which fired __autoload() when it was unserialized. The __autoload() then included the file with the class definition, but that file also output non-header text. This caused session_start() to be unable to add the session_id to the headers. This was difficult to find because we weren't able to see the text that was output from the file that was __autoload()ed, only the warning. ---- Server IP: 69.147.83.197 Probable Submitter: 64.62.104.186 ---- Manual Page -- http://www.php.net/manual/en/function.session-start.php Edit -- https://master.php.net/note/edit/77918 Del: integrated -- https://master.php.net/note/delete/77918/integrated Del: useless -- https://master.php.net/note/delete/77918/useless Del: bad code -- https://master.php.net/note/delete/77918/bad+code Del: spam -- https://master.php.net/note/delete/77918/spam Del: non-english -- https://master.php.net/note/delete/77918/non-english Del: in docs -- https://master.php.net/note/delete/77918/in+docs Del: other reasons-- https://master.php.net/note/delete/77918 Reject -- https://master.php.net/note/reject/77918 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#130612) next »