Re: Re: Help with a trivial session example.

From: Date: Thu, 30 May 2002 23:52:35 +0000
Subject: Re: Re: Help with a trivial session example.
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-100027@lists.php.net to get a copy of this message
> Given $myvar = 5; > > If you use session_register('myvar'); > > Then on another page, do you just access it via $myvar? That is exactly how it works - I also have session.auto_start turned on as well. > And if that's the case, isn't it the same to set > > $HTTP_SESSION_VARS['myvar'] = $myvar; > Or even > $GLOBALS['myvar'] = $myvar; > Or > $_SESSION['myvar'] = $myvar; > > Not that ANY of these are working for me *sigh* As I said - I wouldn't know as I haven't used them yet - but it seems like it should having read the manual briefly. > 4.0.6 according to the phpinfo link on the page ;-) I realised that just after I sent the mail - doh! Mikey

« previous php.general (#100027) next »