note 111467 added to function.session-start
| From: | bimal at sanjaal dot com | Date: | Fri, 22 Feb 2013 10:13:00 +0000 |
| Subject: | note 111467 added to function.session-start | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-193724@lists.php.net to get a copy of this message | ||
Begin writing your coding with ob_start() call as your very first line of php script and include
this file on every scripts later on.
This will ensure you that your session_start() never fails with - headers already sent or similar
messages.
Later on, all header('Location: url'); will also work safely.
But please do this trick only in case you have to solve things earlier and do not have enough time
to debug.
Normally, avoid this practice.
----
Server IP: 69.147.83.199
Probable Submitter: 141.0.8.140 (proxied: 202.166.221.1)
----
Manual Page -- http://php.net/manual/en/function.session-start.php
Edit -- https://master.php.net/note/edit/111467
Del: integrated -- https://master.php.net/note/delete/111467/integrated
Del: useless -- https://master.php.net/note/delete/111467/useless
Del: bad code -- https://master.php.net/note/delete/111467/bad+code
Del: spam -- https://master.php.net/note/delete/111467/spam
Del: non-english -- https://master.php.net/note/delete/111467/non-english
Del: in docs -- https://master.php.net/note/delete/111467/in+docs
Del: other reasons-- https://master.php.net/note/delete/111467
Reject -- https://master.php.net/note/reject/111467
Search -- https://master.php.net/manage/user-notes.php