<?php
ini_set("session.gc_maxlifetime", 1);
ini_set("session.cache_expire", 1);
if (isset($SESSION["color"])) {
echo "the current session color is " . $SESSION["color"];
} else {
$_SESSION["color"] = "blue";
echo " i just set the color value for session.";
}
?>
When reloading this page, the "color" session variable is set the first time. It properly echo's out the value when I reload.... but... the session won't expire!! What do I need to add to this script to ensure that the session is dead after 1 minute of inactivity??
Help!
Jonathan