Re: Session warning
| From: | Thomas Bonham | Date: | Sun, 17 Jul 2005 03:34:34 +0000 |
| Subject: | Re: Session warning | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-218822@lists.php.net to get a copy of this message | ||
Jasper Bryant-Greene wrote:
Thomas Bonham wrote:The first thing at is in my code is the start session command. ThomasHello All, I'm working on session and I'm getting this warning. Maybe someone can help fixing this problem. Below is the following code. Warning: Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /var/www/html/bonham/cornerstone-data/property/adminlogin.php:2) in /var/www/html/bonham/cornerstone-data/property/adminlogin.php on line 3Are you absolutely sure that there is *no* output before the session_start() in adminlogin.php? If there is it won't work. Even a space before the first <?php, or a Unicode BOM, or any kind of output can screw it up. Jasper