note 33184 added to function.session-start

From: Date: Wed, 18 Jun 2003 12:39:29 +0000
Subject: note 33184 added to function.session-start
Groups: php.notes 
Request: Send a blank email to php-notes+get-50577@lists.php.net to get a copy of this message
I spent hours before discovering why I had that warning : (Warning: Cannot send session cache limiter - headers already sent (output started at c:\program files\easyphp\www\10-june\viewdiscussions.php:2) in c:\program files\easyphp\www\10-june\accesscontrol.php on line 3) but then I discovered why that was hapening: 1. 2.<?php 3.session_start(); 4.?> the line 1 was empty this send something to the browser before starting the session, which led to that warning. that empty line caused the warning.! ---- Manual Page -- http://www.php.net/manual/en/function.session-start.php Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+33184 Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+33184&report=yes Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+33184&report=yes

« previous php.notes (#50577) next »