note 44982 added to function.session-start

From: Date: Sun, 22 Aug 2004 10:48:19 +0000
Subject: note 44982 added to function.session-start
Groups: php.notes 
Request: Send a blank email to php-notes+get-75087@lists.php.net to get a copy of this message
I just wanted to report something that made me mad and that I didn't find on any forum ... and I don't know if this is a bug or something normal ... I wrote a script using session-start and I received a "session_start(): Cannot send session cookie - headers already sent" error ... There was no space before the session_start and no output came from my script ... after spending many hours it came out that it was just the way the file was encoded : my script used UTF-8 encoding instead of ANSI and this was the problem ... So be sure to check your file's encoding ... be sure to encode your scripts in ANSI ... ---- Manual Page -- http://www.php.net/manual/en/function.session-start.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+44982 Delete -- http://master.php.net/manage/user-notes.php?action=delete+44982&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+44982&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#75087) next »