Bug #16840 Updated: IIS5 session behaviour with php 4.2.0 (see #8989)
| From: | php-bugs at lists dot php dot net | Date: | Wed, 05 Jun 2002 05:00:07 +0000 |
| Subject: | Bug #16840 Updated: IIS5 session behaviour with php 4.2.0 (see #8989) | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-9513@lists.php.net to get a copy of this message | ||
ID: 16840
Updated by: php-bugs@lists.php.net
Reported By: mrieger@NOSPAM.nanometrics.com
-Status: Feedback
+Status: No Feedback
Bug Type: IIS related
Operating System: Win2000
PHP Version: 4.2.0
New Comment:
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
Previous Comments:
------------------------------------------------------------------------
[2002-05-06 13:29:19] mrieger@NOSPAM.nanometrics.com
Yes, register_globals are turned on.
I also used $_SESSION['varname']:
if(isset($_SESSION['VALID_USER']))
... move on, else redirect to login page
I tried to get it working with both PHP 4.1.2 and 4.2.0, but it simply
wouldn't.
However, as soon as I had installed Apache, everything worked just fine
without any change to the scripts!
Best regards,
Marwin
------------------------------------------------------------------------
[2002-05-04 05:17:32] rasmus@php.net
Did you turn on register_globals? If not, in 4.2 you will need to
use:
if(isset($_SESSION['count']))
for this to work.
------------------------------------------------------------------------
[2002-05-04 05:14:06] hansvanrijswijk@hotmail.com
In version 4.1.2 this code works, in 4.2.0 not!
So I got back to 4.1.2 because I didn't manage to make it work.
<?php
session_start();
if ( !isset($count)) {
$count = 0;
session_register("count");
echo "Counter initialized, reload and the counter will be
incremented";
} else {
$count++;
session_register("count");
}
echo "The counter is now $count ";
?>
------------------------------------------------------------------------
[2002-05-03 06:00:55] oversize@gmx.li
i m encountering the same problem.
I use IIS on the 2k Server (default installation iff IIS is v5 i
guess). My PHP Version is 4.1.0. Maybe i should upgrade anyway soon. I
m olso using a DB session Handler (Ying Zhangs form phpbuilder.com) and
i can see that the Session Variables are in the DB but sometimes there
is just nomore session anymore (just as described by mrieger).
Cant tell you when exactly this causes to happen, but it definitly
does, sometimes. When i loose a Session, i m olso not able anymore to
open a new one. Even if I close all my Browser windows, a new Session
ist not startet (... but as i said: only if it got lost before) I
always can fix this again by deleting all entrys from the session
table. Then everything works fine again.
Dont knwo if this helps you but i strongly believe that there might be
the same reason doing unusefull stuff here.
best regards & thank you
manuel
------------------------------------------------------------------------
[2002-04-25 21:16:17] mrieger@NOSPAM.nanometrics.com
Hi!
I created my own session handlers (using a database) and used the CGI
binary version of PHP. Once I started a session, the session variables
got lost through the pages, although the session variables were
inserted correctly into the database.
After playing around with it all day, I re-installed PHP 4.1.2 and
again it wouldnt work.
I then installed Apache 2.0 (without making any changes to PHP), and
its working!!!!
* There definitely is a bug with sessions in collaboration with IIS. *
I tried to call the vars with $_SESSION, and set register_globals on.
No matter how I set the session.referer_check (according to a posting
in #8989), it will not run with IIS5.
The funniest thing is, the scripts were actually developed on PHP 4.1.2
running on RedHat 7.2 with Apache and then moved onto the windows
server running IIS5, where they didnt run anymore. The relevant
settings in php.ini were the same on windows and on RedHat, and the
scripts don't use any platform-specific features.
Cheers,
Marwin
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=16840&edit=1