I dont understand here something ... Why the code below always increment
$session->var (session never expires). I refresh the page as many times as i
want and always get 'var' incremented. If I try to use setExpirationSeconds
- everything works as expected - session expires after a certain time

$session = new Zend_Session_Namespace('Auth');
$session->setExpirationHops(3);

if (!isset($session->var)) {
    echo "VAR does not exist - set it:";
    $session->var = 1;
} else {
    echo "Increment VAR:";
    $session->var++;
}

echo $session->var;


-- 
Pagarbiai, Aurimas Likas
URLs: http://magento.lt

Reply via email to