I've searched around in the posts some and haven't quite found an answer i'm looking for.
On the top of the page, i'm doing the following:
<?
$lifetime = 60 * 60 * 24 * 14;
$path = '/stest/'
$domain = $myip;
session_set_cookie_params($lifetime,$path,$domain);
ini_set('session.gc_maxlifetime',$lifetime);
session_start();
if ($_GET["h"])
$_SESSION["test"] = $_GET["h"];
echo $_SESSION["test"];
?>
so basically i see my test text that i'm passing with a GET string for maybe 30 minutes, then when i refresh it dissapears. I'm working on a few applications that would greatly benefit from not having the users' session data destroyed.
when i check in /var/lib/php4 for the session files, i see that they have dissapeared after this timeframe also.
So far as i can tell the session parameters are being set correctly since my session data does exist at all (ie not a wrong path or domain).
Does anyone have any ideas on what i can do to get these sessions to not evaporate into thin air?
Any feedback would be greatly appreciated!