session issues
Posted: Thu Sep 26, 2002 2:22 am
I have recently tried to create an administration session, everything seems to work including login except when I redirect to a session holding page for some reason the sessions do not maintain state and I'm driving myself crazy trying to find out why. This is what I am using to try and get the sessions to work, according to the tutorial nothing should be going wrong!!!!
The problem is that it keeps going to "nothing is registered " instead of (code i did not include) processing the HTML frameset.
Code: Select all
<?php
ob_start(); // turn output buffering on
// mainadmin.php - secure page
// session check
session_start();
if (!session_is_registered("SESSION"))
{
// if session check fails, invoke error handler
echo "nothing is registered";
// header ("Location: validate.php");
exit();
}
?>