From:             adriano at steelconsultoria dot com dot br
Operating system: Windows 2000
PHP version:      4.3.3
PHP Bug Type:     Session related
Bug description:  Session is not saved at first time...

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 bug report at http://bugs.php.net/?id=25881&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=25881&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=25881&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=25881&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=25881&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=25881&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=25881&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=25881&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=25881&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=25881&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=25881&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=25881&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25881&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=25881&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=25881&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=25881&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=25881&r=float

Reply via email to