Again, there really is nothing out on the interwebs on this one.
My LiteSpeed, PHP 5.3, Zend Guard host is having trouble displaying my home page.
The homepage has a little php that require()s another php with only:
session_start();
if (!isset($_SESSION['LAST_ACTIVITY'])) {
$_SESSION['LAST_ACTIVITY'] = time();
exit();
} else if (time() - $_SESSION['LAST_ACTIVITY'] > 60) {
session_unset();
session_destroy();
session_regenerate_id(true);
$_SESSION['LAST_ACTIVITY'] = time();
exit();
}
$_SESSION['LAST_ACTIVITY'] = time();
in it. The rest is good ole fashioned HTML with a few srcs to js and css and a !DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd" tag.
It will send a page, but it takes ~250ms instead of the more normal ~75ms when the actual page loads.
Examining page source reveals an empty page.
Weird.max.
Many thanks in advance!
Update
Used unencoded PHP. Commented out the session-related PHP. It worked perfectly. Session variable restrictions? Is LAST_ACTIVITY reserved?
More Session Stuff
I edited my session checker to echo certain conditions to the document. It seemed to work well for the most part, but every now and then, it would echo that the session had expired even after setting it only a few seconds before. The PHP checks to see if the session var is set, if not set and echo that it's not set; if the session var is too old, if so dump session, set the session var, and echo; if neither, update the session var and echo.
