Deborah Vorndran wrote:

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*

It means that you have already sent something to the browser. A space or newline is enough to get this error. Session starting _must_ be the first thing sent to the browser.


HTH
Chris


-- PHP Install Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to