Jump to content

[SOLVED] session variables not passing on Windows Server 2003


joshmaker

Recommended Posts

I am trying to move a website I built onto a Windows 2003 server, however, the session variables don't seem to be working correctly.  Here is the first test page I created:

<?php
session_start();

session_register("level");

$_SESSION["level"] = 42;
print 'Session: '.$_SESSION["level"];
?>

<br />
<a href="sessiontest.php">session test</a>

  The page prints out "Session: 42".  Here is the code for the link:

<?php
session_start();

print 'Session: '.$_SESSION["level"];
?>

  This page prints out "Session: " -- for some reason the variable 'level' isn't being sent over.  I've checked that session.auto_start = 0 in php.ini and now I am out of ideas.  Anyone able to offer me any help?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.