Sessions don't work

From: Date: Fri, 11 Apr 2003 19:43:33 +0000
Subject: Sessions don't work
Groups: php.install 
Request: Send a blank email to php-install+get-10584@lists.php.net to get a copy of this message
Hi I've got a problem with Sessions in my php-installation (PHP(PHP 4.3.1 (cli))) The problem is: The script <?php session_start(); ?> Does not work. When I start it via "php filename.php" it returns: Warning: session_start() [http://www.php.net/function.session-start]: Cannot send session cookie - headers already sent in /www/htdocs/mp3/sessiontest.php on line 3 Warning: session_start() [http://www.php.net/function.session-start]: Cannot send session cache limiter - headers already sent (output started at /www/htdocs/mp3/sessiontest.php:3) in /www/htdocs/mp3/sessiontest.php on line 3 the script <?php setcookie("testcookie"); ?> works perfectly. I checked the file for whitespaces, there are none. Anyone got any idea where this error comes from? Thanks in advance Jürgen Geuter -- ICQ # 81510866 - http://www.emptiness.de - thanatos@emptiness.de "War does not determine who is right - only who is left." (Bertrand Russell)

« previous php.install (#10584) next »