Hello,
I'm fighting with a very strange session problem - maybe someone experienced somthing similar:
at random times (sometimes after a few minutes, sometimes after a couple of hours) all active sessions get cleared - the session-cookie is still active, and the session-file in /tmp still exists (but with a filesize of 0 bytes).
this affects all sessions (regardless which php-programm started it). i wrote a testscript (see code below), that does nothing but starting and reading a session-variable. this also gets cleared.
my big question is: is it possible to accidentally kill sessions of other client-users from other programs in PHP? (the different scripts all run as the same server-user 'www').
i'd be grateful for any glue. thanks.
stefan
the session-testscript:
<?php
session_name ("testsession");
session_start();
if ($_REQUEST["startsession"] != "")
{
$_SESSION["test"] = "yeah";
}
if ($_SESSION["test"] == "yeah")
{
?>
<div id="">logged in</div>
<?php
}
else
{
?>
<div id="loginForm">
<a href="session.php?startsession=yes">login</a>
</div>
<?php
}
?>