note 101772 added to function.session-start

From: Date: Mon, 10 Jan 2011 18:30:11 +0000
Subject: note 101772 added to function.session-start
Groups: php.notes 
Request: Send a blank email to php-notes+get-175609@lists.php.net to get a copy of this message
In response to milanzivanovic at gmail dot com's "Headers already sent" error, this is because there has already been data sent to the browser prior to the session_start() call. The easiest way to get around this error is to use output buffering (a simple call to ob_start() will fix it, so long as it is the FIRST call made on the page). ---- Server IP: 64.71.164.2 Probable Submitter: 207.170.244.174 ---- Manual Page -- http://www.php.net/manual/en/function.session-start.php Edit -- https://master.php.net/note/edit/101772 Del: integrated -- https://master.php.net/note/delete/101772/integrated Del: useless -- https://master.php.net/note/delete/101772/useless Del: bad code -- https://master.php.net/note/delete/101772/bad+code Del: spam -- https://master.php.net/note/delete/101772/spam Del: non-english -- https://master.php.net/note/delete/101772/non-english Del: in docs -- https://master.php.net/note/delete/101772/in+docs Del: other reasons-- https://master.php.net/note/delete/101772 Reject -- https://master.php.net/note/reject/101772 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#175609) next »