Re: session register!!

From: Date: Mon, 11 Feb 2002 14:14:59 +0000
Subject: Re: session register!!
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-84266@lists.php.net to get a copy of this message
yes i did. Janet Valade wrote: > Did you use session_start() on the second page? > > In other words, the first page should have > > session_start(); > session_register("the_var"); > $the_var=-"here it is"; > link or whatever takes you to the second page. > > Then the second page needs > > session_start(); > echo "$the_var"; > > Janet > > ----- Original Message ----- > From: "Cristian Cerda" <cristian@impulsando.com> > To: <php-general@lists.php.net> > Sent: Friday, February 08, 2002 11:15 AM > Subject: [PHP] session register!! > > > Hi there, hope you can help me with my problem. > > > > I'm trying to set up a PHP/MySQL web site using session variables to > > pass information between pages. So far no good. > > > > I did set register_globals to On on the php.ini file. But when i use for > > example session_register("the_var") in one page ( using session_start() > > at the beginning), i don't get anything on the next page if i do echo > > $the_var . > > > > Don't know what's wrong, but my guess is i have something wrong with the > > configuration as i copy/pasted most of the code. > > > > I'm using OS X / WebSTAR V / PHP 4.0.6 as a CGI / MySQL > > > > please help > > > > Cristian > > > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > -- Cristián Cerda Pé cristian@impulsando.com Impulsando Ltda. www.impulsando.com San Pio X 2460 of.604 Providencia - Santiago Tel: (56 2) 3358978

« previous php.general (#84266) next »