RE: php 4.1.2 / $_SESSION
| From: | Martin Kemp | Date: | Tue, 30 Apr 2002 09:15:48 +0000 |
| Subject: | RE: php 4.1.2 / $_SESSION | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-13413@lists.php.net to get a copy of this message | ||
I'm including the text of a previous discussion on this subject:
-- begin include
4.1.1 works perfectly well but when they introduced 4.1.2, there was a
bug that was introduced also.
-----Original Message-----
From: Martin Kemp [mailto:martin@quintic.co.uk]
Sent: Wednesday, April 10, 2002 5:24 AM
To: php-windows@lists.php.net
Subject: RE: [PHP-WIN] Re: Session information not stored in php 4.1.2
Thanks for that - I'd found mention of the problem on google groups
yesterday, but they didn't include a resolution. I'll try it tonight and
report my results.
BTW: For the record, my mention of 4.0.6 was incorrect - it was actually
4.1.1 that it worked with $_SESSION without the need for
session_register,
etc. It was when I installed 4.1.2 that my problems started.
Thanks again,
Martin Kemp
> -----Original Message-----
> From: Lee, Ford [mailto:LeeF@sdc-moses.com]
> Sent: 09 April 2002 3:05
> To: Fabian Deutsch; php-windows@lists.php.net
> Subject: RE: [PHP-WIN] Re: Session information not stored in php 4.1.2
>
>
> check bug fix 16435 for php in the bug database. I've encountered
this
> prob and it's a recurring theme but it's fixed in the Release
Candidate
> 1 and 2 for php 4.2.....have to patch the php4ts.dll and
php4apache.dll
> with these new ones in the RC.
>
> bug and fix: http://bugs.php.net/bug.php?id=16435
>
> At http://www.php.net/~derick/ you can find RC2.
>
> -----Original Message-----
> From: Fabian Deutsch [mailto:fabian.deutsch@gmx.de]
> Sent: Tuesday, April 09, 2002 8:45 AM
> To: php-windows@lists.php.net
> Subject: [PHP-WIN] Re: Session information not stored in php 4.1.2
>
>
> Hey Martin,
> I've got the same problem with php4.1.2 as an apache module.
> As far as i could find out the whole thing depends on the php4ts.dll
> (using
> win2k).
> Probably it's a bug in 4.1.2?
>
> fabian deutsch
>
> "Martin Kemp" <martin@martin-kemp.com> schrieb im Newsbeitrag
> news:000801c1dfac$32985ea0$9fc809c0@quintic.bogus...
> > Hi folks,
> >
> > I recently wrote a website that stores session information using PHP
> 4.0.6
> > on win2k, with php as a module in apache.
> >
> > However, I've just moved the same site across to another machine
again
> using
> > win2k, with php as a module in apache but this time with PHP 4.1.2
and
> now
> > the session information does not seem to be stored.
> >
> > The session file gets created in the session directory and the array
> > $_SESSION exists and stores my data within a page, but the
information
> > doesn't get stored in the session file.
> >
> > I've checked the php.ini files between versions and the session
> information
> > is the same.
> >
> > Does anyone know whether there's an issue with session on 4.1.2, or
> does
> the
> > session stuff work differently in 4.1.x?
> >
> > thanks in advance,
> >
> > Martin Kemp
> > Cambridge UK
> > Email: martin@martin-kemp.com
> >
> >
-- end include
> -----Original Message-----
> From: Steff [mailto:phpguru@gmx.ch]
> Sent: 29 April 2002 1:42
> To: php-windows@lists.php.net
> Subject: php 4.1.2 / $_SESSION
>
>
> hi folks
>
> i'm just about to experiment with the new handling of session vars
> ($_SESSION[...]). now if i start with
>
> session_start();
> $_SESSION["remember_me"] = "steff";
> session_save_close(); // tested with and without this function call
>
> , the var value won't be set correctly. on a following page
>
> print($_SESSION["remember_me"]);
>
> doesn't print anything. even a
>
> print_r($_SESSION);
>
> only shows Array (). i admit i am fairly confused by information on
> register_globals (which is set to on in my php.ini) etc.
>
> up to now i have worked with
>
> session_start();
> $remember_me = "steff";
> session_register("remember_me");
>
> which still works great. i'm working on w2k/php4.1.2/apache1.3.22. the
> session.[...] settings in my php.ini correspond those in
> php.ini-recommended.
>
> i read about a bug(?) in connection with php4.1.2. and IIS5
> (http://www.php.net/manual/en/ref.session.php, posted on 01-Apr-2002).
> any known problems with apache (or php itself)? updating to 4.2 is no
> alternative (as posted on 07-Apr-2002 on the same page) since i have to
> respect some provicer-side dependencies ;-)
>
> TIA for your comments
>
> steff
>
>