#25881 [Opn->Fbk]: Session is not saved at first time...

From: Date: Fri, 17 Oct 2003 15:28:22 +0000
Subject: #25881 [Opn->Fbk]: Session is not saved at first time...
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-49148@lists.php.net to get a copy of this message
ID: 25881 Updated by: sniper@php.net Reported By: adriano at steelconsultoria dot com dot br -Status: Open +Status: Feedback Bug Type: Session related Operating System: Windows 2000 PHP Version: 4.3.3 New Comment: 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 Previous Comments: ------------------------------------------------------------------------ [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

« previous php.bugs (#49148) next »