ID: 25881 Comment by: omarh at cox dot net Reported By: adriano at steelconsultoria dot com dot br Status: No Feedback Bug Type: Session related Operating System: Windows 2000 PHP Version: 4.3.3 New Comment:
The problem went away after I updated to the latest snapshot at http://snaps.php.net/win32/php4-win32-STABLE-latest.zip Previous Comments: ------------------------------------------------------------------------ [2003-11-07 14:50:31] omarh at cox dot net I think I am seeing the same bug. I'm also using Windows 2000 Professional (latest service pack) with IIS 5.x. I'm just trying to get the sample session code to work, and it does not increment my counter each time I reload the page. It acts like it isn't storing the session at all between page loads. Here is the code I'm using. <?php if (!isset($_SESSION['myCounter'])) { $_SESSION['myCounter']=1; } else { $_SESSION['myCounter']++; } ?> Counter : <?php echo $_SESSION['myCounter']; ?> <br> This should increment each time you refresh the page. <br> In our session we have the following: <br> <?php print_r($_SESSION); ?> ------------------------------------------------------------------------ [2003-10-28 04:47:57] [EMAIL PROTECTED] No feedback was provided. The bug is being suspended because we assume that you are no longer experiencing the problem. If this is not the case and you are able to provide the information that was requested earlier, please do so and change the status of the bug back to "Open". Thank you. ------------------------------------------------------------------------ [2003-10-17 11:28:22] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-STABLE-latest.zip ------------------------------------------------------------------------ [2003-10-15 10:01:31] adriano at steelconsultoria dot com dot br Description: ------------ I´m using Win2K + IIS. I call my script like that: http://localhost/test.php?id=2 And the script is: <? session_start(); $_SESSION['id'] = $_GET['id']; Header("Location: test2.php"); ?> In the test2.php I have: <? session_start(); if (!$_SESSION['id']) { Header('Location: error.php'); } else { echo 'OK'; } ?> So when I call the script for the first time it calls the error.php Then I call again through IE and it works. With Apache it works correctly... ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=25881&edit=1