Hello,
I'm doing some development of PHP/MySQL on IIS. Everything appears to be working except sessions.
If on one page I have something like:
---------------------------
// initiate a session
session_start();
// register the variables
session_register("SESSION_UID"
;
$SESSION_UID = "Sample";
// load second page
header("Location:userAdmin.php"
;
---------------------------
On userAdmin.php I check the session:
---------------------------
// check for valid user session
session_start();
if (!session_is_registered("SESSION_UID"
)
{
die ("Session not registered"
;
exit;
}
---------------------------
If I run this on my Win2K system with IIS it always fails. If I copy it to my ISP running on Linux/Apache it works fine.
Is there an IIS configuration/privilege or php.ini setting that I'm missing?
Thanks,
-David
I'm doing some development of PHP/MySQL on IIS. Everything appears to be working except sessions.
If on one page I have something like:
---------------------------
// initiate a session
session_start();
// register the variables
session_register("SESSION_UID"
$SESSION_UID = "Sample";
// load second page
header("Location:userAdmin.php"
---------------------------
On userAdmin.php I check the session:
---------------------------
// check for valid user session
session_start();
if (!session_is_registered("SESSION_UID"
{
die ("Session not registered"
exit;
}
---------------------------
If I run this on my Win2K system with IIS it always fails. If I copy it to my ISP running on Linux/Apache it works fine.
Is there an IIS configuration/privilege or php.ini setting that I'm missing?
Thanks,
-David