|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2003-10-15 10:01 UTC] 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... PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 02 06:00:01 2025 UTC |
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); ?>