note 58556 rejected from function.session-start by cece
| From: | cece@php.net | Date: | Tue, 08 Nov 2005 08:15:38 +0000 |
| Subject: | note 58556 rejected from function.session-start by cece | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-98237@lists.php.net to get a copy of this message | ||
Note Submitter: sihwey at hotmail dot com
----
I encountered this serious problem that I lost all my session data after a redirect even though I
used all the solutions previously posted... I wonder what is going wrong with my script...
here is my part of my code:
session_start();
$_SESSION['pid']=$pid;
$_SESSION['cusid']=$cusid;
$_SESSION['paswd']=$paswd;
session_write_close();
header('Location:http://www.test.com/test.php');
exit();
on test.php, I echo those three session variables after the page has been redirected. It gives me
nothing on the test.php page... all my session variables are gone....
by the way, all session variables "are able" to be passed to test.php if I use IE, but
they won't if I use firefox....
any reason?