I have a problem with my sessions, it is for storing very simple data.
a) name
b) ip
c) time
my set up of the session ini goes as so...
ini_set('session.gc_maxlifetime', time() + 300);
ini_set('session.cookie_lifetime', time() + 300);
session_start();
$_SESSION['name'] = "name";
$_SESSION['ip'] = $_SERVER['REMOTE_ADDR'];
$_SESSION['time'] = time();
Now when checking these i use this
if (!isset($_SESSION['name'])) {
set session balh blah with the above ini settings
} else {
retrive the values
}
ok so is their any reason why that should everytime i close my browser start a new session?
Its nothing to do with my cookie settings on my computer because all other sites are fine.
Much apreciated for your help
Matt