PHP Sessions - works halfway

From: Date: Sun, 06 Jul 2003 16:58:02 +0000
Subject: PHP Sessions - works halfway
Groups: php.install 
Request: Send a blank email to php-install+get-11231@lists.php.net to get a copy of this message
I do a            
session_start(); session_register("SESSION"); echo "<li>The counter is now $SESSION[count] "; straight from the tutorial, and I get this: -------------------------------------------------- *Warning*: Cannot send session cookie - headers already sent by (output started at /var/www/html/Deb/phpsession.php:5) in */var/www/html/Deb/phpsession.php* on line *6* *Warning*: Cannot send session cache limiter - headers already sent (output started at /var/www/html/Deb/phpsession.php:5) in */var/www/html/Deb/phpsession.php* on line *6* # Counter initialized, please reload this page to see it increment # The counter is now 0 # ------------------------------------------------------ The cookie files ARE being created in /tmp. What am I doing wrong?

« previous php.install (#11231) next »