Re: Sessions help... the saga continues

From: Date: Thu, 15 May 2003 18:03:13 +0000
Subject: Re: Sessions help... the saga continues
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-147753@lists.php.net to get a copy of this message
----- Original Message ----- From: "Dan Joseph" <djoseph@duhq.us> To: <php-general@lists.php.net> Sent: Thursday, May 15, 2003 11:49 AM Subject: [PHP] Sessions help... the saga continues > Ok, the saga continues... > > Scott, Robbert, thanks for your previous help. I have made a couple test > scripts. > -- snip -- > > This works just fine with these scripts. I am going back to the drawing > board with other scripts. I also tried - > > <? > session_start (); > > $name = "julio"; > > session_register('name'); > > echo ' > <form action=test2.php> > <input type=submit value=submit> > </form> > '; > > foreach ($GLOBALS as $name => $value) { > echo "$name => $value<br>"; > } > ?> > > - for test.php, but this did not start any sessions what-so-ever. Maybe I > have the syntax wrong, who knows. > > Anyway, thanks for your help and direction, I made some adjustments to my > code already, and its starting to work the way I want it. I will keep you > posted. > > -Dan Joseph This is just a guess but I susspect the problem is that you have register_globals disabled in php.ini. The session_register() function will not work with register_globals disabled. This makes sense becuase it seems to work when you assign the variables to the $_SESSION array but not when you assign the variable through the session_register() function. HTH, Kevin

« previous php.general (#147753) next »