Re: Session Variables

From: Date: Tue, 26 Mar 2002 03:52:11 +0000
Subject: Re: Session Variables
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-90146@lists.php.net to get a copy of this message
On Mon, 25 Mar 2002 18:18:33 -0000, chad@gilmer.com (Chad Gilmer) wrote: >Hi There, > >I am a beginner to PHP and I am tring to use session variables on my site. > >I am trying to use Session Variables in PHP on the iPLANIT.tv site > >When I use the following code: > ><?php > $ses_counter++; > > session_register("ses_counter"); > >?> > >I get the following error > >Warning: Cannot send session cookie - headers already sent by (output >started at /home/iplanit/public_html/php/login.php:8) in >/home/iplanit/public_html/php/login.php on line 11 > >Warning: Cannot send session cache limiter - headers already sent (output >started at /home/iplanit/public_html/php/login.php:8) in >/home/iplanit/public_html/php/login.php on line 11 > >Any Ideas??? > >Cheers > >Chad > put the session_register("") in front of the code.

« previous php.general (#90146) next »