|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #25881 Session is not saved at first time...
Submitted: 2003-10-15 10:01 UTC Modified: 2003-10-28 04:47 UTC
Avg. Score:4.0 ± 1.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: adriano at steelconsultoria dot com dot br Assigned:
Status: No Feedback Package: Session related
PHP Version: 4.3.3 OS: Windows 2000
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
Solve the problem:
45 + 2 = ?
Subscribe to this entry?

 [2003-10-15 10:01 UTC] adriano at steelconsultoria dot com dot br
I?m using Win2K + IIS.

I call my script like that:


And the script is:

 $_SESSION['id'] = $_GET['id'];

 Header("Location: test2.php");

In the test2.php I have:

 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...


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2003-10-28 04:47 UTC]
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-11-07 14:50 UTC] 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.

if (!isset($_SESSION['myCounter']))

Counter : 
<?php echo $_SESSION['myCounter']; ?>
This should increment each time you refresh the page.
In our session we have the following: <br>
<?php print_r($_SESSION);
 [2003-11-07 18:42 UTC] omarh at cox dot net
The problem went away after I updated to the latest snapshot at
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Wed Nov 29 16:01:27 2023 UTC