> -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
> 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;
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
> 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[
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
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
6 matches
Mail list logo