RE: [PHP] Re: Help with a trivial session example.

2002-05-31 Thread Ford, Mike [LSS]
> -Original Message- > From: Michael Davey [mailto:[EMAIL PROTECTED]] > Sent: 31 May 2002 00:37 > > I can't say that I have moved over to the new superglobals > yet - I prefer > register_globals cos I am lazy ;) > > But it does seem that there are two possible variables that > you need

Re: [PHP] Re: Help with a trivial session example.

2002-05-30 Thread Michael Davey
> 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;

RE: [PHP] Re: Help with a trivial session example.

2002-05-30 Thread John Holmes
You have to use session_register() with 4.0.6 ---John Holmes... > -Original Message- > From: Daevid Vincent [mailto:[EMAIL PROTECTED]] > Sent: Thursday, May 30, 2002 7:46 PM > To: [EMAIL PROTECTED] > Cc: 'Michael Davey' > Subject: RE: [PHP] Re: Help wi

RE: [PHP] Re: Help with a trivial session example.

2002-05-30 Thread Daevid Vincent
> I can't say that I have moved over to the new superglobals > yet - I prefer register_globals cos I am lazy ;) Given $myvar = 5; If you use session_register('myvar'); Then on another page, do you just access it via $myvar? And if that's the case, isn't it the same to set $HTTP_SESSION_VARS[

Re: [PHP] Re: Help with a trivial session example.

2002-05-30 Thread Michael Davey
Hmm... I can't say that I have moved over to the new superglobals yet - I prefer register_globals cos I am lazy ;) But it does seem that there are two possible variables that you need to use - the one in your script ($HTTP_SESSION_VARS), but this is only for 4.0.6 or less, it is $_SESSION otherw

RE: [PHP] Re: Help with a trivial session example.

2002-05-30 Thread Daevid Vincent
Okay, now I'm completely confused... I made a very simple test page, and even that doesn't work: http://daevid.com/examples/index.phtml Notice how I have the right session_id, but the variable didn't pass onto the second page. Can someone please explain to me what I am doing wrong? Do I not