Re: What is wrong??????
| From: | Chris Shiflett | Date: | Mon, 14 Jul 2003 19:27:11 +0000 |
| Subject: | Re: What is wrong?????? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-155152@lists.php.net to get a copy of this message | ||
--- phpu <phpu@go.ro> wrote:
> Warning: Cannot send session cookie - headers already sent by
> (output started at c:\apache\htdocs\proiect_gsm\login.php:11) in
> c:\apache\htdocs\proiect_gsm\login.php on line 81
This should be obvious, but you do something on line 81 that you cannot do,
because output began on line 11.
My guess would be that you have output such as:
> print 'Email or password cannot be blank ...
prior to starting your session:
> session_start();
Try starting your session before you output anything (moving the code to the
top may be a quick fix), and your warning should go away.
Chris
=====
Become a better Web developer with the HTTP Developer's Handbook
http://httphandbook.org/