Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sessions with IIS

Status
Not open for further replies.

NeffTribe

Programmer
Joined
Oct 1, 2001
Messages
8
Location
US
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top