G
Guest
when redirecting to another page using php header, it appears that IE loses
session variables. other browsers are fine:
header("Location: page2.php");
page2.php checks for session variable called username, if it was set then
displays the page, if not set then takes the user to login.php to enter login
details.
I have tried adding the following:
session_start();
header('P3P: CP="IDC DSP COR CURa ADMa OUR IND PHY ONL COM STA"');
header("Cache-control: private");
and adding the following after registering session variables
session_write_close();
but still no luck, session cookies variables are lost
Version: Windows XP Pro SP2 and fully up to date
IE: 6.0.2900.2180
Firefox 1.5 working fine in the same machine as well as Netscape.
Much appreciated if you could show me a workaround to fix the problem with
IE as most people using IE to browser the Interent.
session variables. other browsers are fine:
header("Location: page2.php");
page2.php checks for session variable called username, if it was set then
displays the page, if not set then takes the user to login.php to enter login
details.
I have tried adding the following:
session_start();
header('P3P: CP="IDC DSP COR CURa ADMa OUR IND PHY ONL COM STA"');
header("Cache-control: private");
and adding the following after registering session variables
session_write_close();
but still no luck, session cookies variables are lost
Version: Windows XP Pro SP2 and fully up to date
IE: 6.0.2900.2180
Firefox 1.5 working fine in the same machine as well as Netscape.
Much appreciated if you could show me a workaround to fix the problem with
IE as most people using IE to browser the Interent.