Re: Error on session_start()
| From: | p.whiter | Date: | Fri, 19 Oct 2001 22:26:51 +0000 |
| Subject: | Re: Error on session_start() | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-71640@lists.php.net to get a copy of this message | ||
Hi
Be sure that you are placing the session_start() before the (html)head
section of your script, best to put it right at the top of the page, also
make sure there is no white space before opening php tags.
HTH
Paul
----- Original Message -----
From: "Zavier Sheran" <aaaweb@zavier.net>
To: <php-general@lists.php.net>
Sent: Friday, October 19, 2001 11:13 PM
Subject: [PHP] Error on session_start()
: When I try to start a session or authenticate with HTTP headers, I get the
: following error:
:
: Warning: Cannot send session cache limiter - headers already sent (output
: started at /usr/local/etc/httpd/vhosts/gar/english/login/login_2.php:1) in
: /usr/local/etc/httpd/vhosts/gar/english/login/login_2.php on line 1
:
:
: It always says the headers were already sent. What could be the cause?
:
: It happens on my dev server (Win32, PHP 4.06) and on my ISP's virtual
server
: (FreeBSD, PHP 4.04)
:
: -Zavier
:
:
:
: --
: PHP General Mailing List (http://www.php.net/)
: To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
: For additional commands, e-mail: php-general-help@lists.php.net
: To contact the list administrators, e-mail: php-list-admin@lists.php.net
: