Re: session_start() problem

From: Date: Mon, 13 Aug 2001 11:25:04 +0000
Subject: Re: session_start() problem
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-62405@lists.php.net to get a copy of this message
Did you make sure everything below is BEFORE the html tag? Also you can just set the variable $sesionvar like this: $sesionvar = "fulanito"; instead of $HTTP_SESSION_VARS["sesionvar"] = "fulanito"; > lines in the acceso.php file: > > 27 session_name(primera); > 28 session_start(); > 29 session_register("sesionvar"); > 30 $HTTP_SESSION_VARS["sesionvar"] = "fulanito"; > > what I get in the browser: > > Warning: Cannot send session cookie - headers already sent by (output > started at /public_html/php/acceso.php:8) in /public_html/php/acceso.php on > line 28 > > Warning: Cannot send session cache limiter - headers already sent (output > started at /public_html/php/acceso.php:8) in /public_html/php/acceso.php on > line 28 > > some help please > thanks in advance > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#62405) next »