note 102750 added to function.session-start
| From: | alakysatyahoodotcom at osu1 dot php dot net | Date: | Thu, 03 Mar 2011 16:26:06 +0000 |
| Subject: | note 102750 added to function.session-start | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-177534@lists.php.net to get a copy of this message | ||
Sorry for the noob comment but for those having the error :
Warning: session_start(): Cannot send session cache limiter - headers already sent ...
And before trying all the solutions added by the experts, simply ensure to have your php code before
even the DOCTYPE tag like this (and not between the doctype and html tags as I was doing):
<?php session_start(); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Test Page</title>
</head>
<body>
etc ....
It might sound funny but I am sure this post will save time to some others noobs like me ... !
----
Server IP: 69.147.83.197
Probable Submitter: 86.99.58.60 (proxied: 86.99.58.60)
----
Manual Page -- http://www.php.net/manual/en/function.session-start.php
Edit -- https://master.php.net/note/edit/102750
Del: integrated -- https://master.php.net/note/delete/102750/integrated
Del: useless -- https://master.php.net/note/delete/102750/useless
Del: bad code -- https://master.php.net/note/delete/102750/bad+code
Del: spam -- https://master.php.net/note/delete/102750/spam
Del: non-english -- https://master.php.net/note/delete/102750/non-english
Del: in docs -- https://master.php.net/note/delete/102750/in+docs
Del: other reasons-- https://master.php.net/note/delete/102750
Reject -- https://master.php.net/note/reject/102750
Search -- https://master.php.net/manage/user-notes.php