Re: Error messge regarding session variables
| From: | Johannes Janson | Date: | Tue, 17 Apr 2001 14:56:35 +0000 |
| Subject: | Re: Error messge regarding session variables | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-8621@lists.php.net to get a copy of this message | ||
Hi,
cookies are sent as header information. This means you can't send
any output (html-tag, whitespaces before <?php) at all before
sending cookie/header information.
As your error message tells you the output already started in line 4.
Move the cookie-part from line 6 to the beginning and it should
work.
Johannes
"Dan Guja" <notdang@rootshell.be> schrieb im Newsbeitrag
news:10131591052.20010417174717@rootshell.be...
> i've got error message when i put some session variables on my pagge:
>
> Warning: Cannot send session cookie - headers already sent by (output
started at
/home/httpd/vhosts/coliba.freephp.digiro.net/htdocs/user/index.php:4) in
/home/httpd/vhosts/coliba.freephp.digiro.net/htdocs/user/index.php on line 6
>
> Anyone can expline me whta does it mean?
>
>
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net
> For additional commands, e-mail: php-db-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>