RE: [PHP] Re: sessions work using SSL for 4.0.3pl1 ?
| From: | Johnson, Kirk | Date: | Wed, 23 Apr 2003 14:50:52 +0000 |
| Subject: | RE: [PHP] Re: sessions work using SSL for 4.0.3pl1 ? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-145023@lists.php.net to get a copy of this message | ||
If register_globals is set to "on" in php.ini, then you want to use the
session variables directly, instead of through the array. For example, do
this:
$scott = "things that make you go hrm";
session_register('scott');
$HTTP_SESSION_VARS["scott"] will then have the assigned value on the *next*
page, not the current page. $scott will also have the assigned value on the
next page. With register_globals enabled, there is no real need to use the
$HTTP_SESSION_VARS[] array.
Kirk
> -----Original Message-----
> From: neko [mailto:neko@swirve.com]
> Sent: Wednesday, April 23, 2003 4:32 AM
> To: php-general@lists.php.net
> Subject: [PHP] Re: sessions work using SSL for 4.0.3pl1 ?
>
>
> latest issue - if we use
>
> $HTTP_SESSION_VARS["scott"] = "things that make you go hrm";
>
> this is NOT remembered between requests. If I add this and
> then print_r the
> array, then I can see the value, but if I print_r the array
> before I add it
> in (again), then it doesn't exist, suggesting that the array
> is not being
> preserved between sessions. Any tips? Will check php.ini,
> when I can find
> the file on the server! :)
>
> cheers,
> neko
>
> "Neko" <neko@swirve.com> wrote in message
> news:20030423090420.8138.qmail@pb1.pair.com...
> > Just a note - I think it's sorted - the developer was
> referring to $_POST,
> > $_SESSION etc, which wasn't introduced until 4.1.0. I think
> they need to
> > reference $HTTP_SESSION_VARS instead.
> >
> > cheers,
> > neko
> >
> > "Neko" <neko@swirve.com> wrote in message
> > news:20030423084525.88525.qmail@pb1.pair.com...
> > > Just wanted to quickly check to see if there are any
> gotchas with using
> > > sessions on SSL for that version of PHP. The code works
> fine for php
> > 4.3.x
> > > over http, I'm checking the php.ini files to see what
> differences there
> > are.
> > > At present, it seems like we can't access session data.
> > >
> > > I'd appreciate any experience in the matter! I'll post
> when I find out
> > more
> > > info about the issue.
> > >
> > > cheers,
> > > neko
> > >
> > >
> >
> >
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>