note 103550 modified in function.session-start by danbrown

From: Date: Wed, 20 Apr 2011 14:26:40 +0000
Subject: note 103550 modified in function.session-start by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-178993@lists.php.net to get a copy of this message
For the error: Warning: session_start(): Cannot send session cache limiter - headers already sent ... this kind of errors would occur, when the encoding of your script file needs to send some headers just after your script starts to execute, this happens mostly with the scripts using normal utf8 encoding. To overcome the issue, use utf8(without BOM) encoding provided by notepad++ and most modern editors. Using utf8 encoding and cookie based sessions, will result in headers already sent by error. --was-- for alakys comment I should add, this kind of errors would occur, when the encoding of your script file needs to send some headers just after your script starts to execute, this happens mostly with the scripts using normal utf8 encoding. To overcome the issue, use utf8(without BOM) encoding provided by notepad++ and most modern editors. Using utf8 encoding and cookie based sessions, will result in headers already sent by error. http://php.net/manual/en/function.session-start.php

« previous php.notes (#178993) next »