I can not seem to get session variables working:
I start the session and register the variables as follows:
<?
session_start();
// start a new session
echo session_id();
$LoggedOn="NO";
session_register("LoggedOn");
?>
However when I try to use the variables later I get an undefined variable error, code:
<?
echo $PHPSESSID;
echo $LoggedOn;
?>
The session ID does return successfully.
Any ideas or pointers in the right direction much appreciated.
Regards