set timeout for session using zend -


how renew session everytime user requests page?i using code below not seem working.

$zend_authns = new zend_session_namespace('zend_auth'); $zend_authns->setexpirationseconds( 3600); 

this expire no matter what, if user clicking on diffrente pages or if inactive.

thank you.

$zend_authns->setexpirationhops(1); 

would normal way expire session on each page request.

you seem using zend_auth, wonder if can accomplished using storage component of zend_auth, maybe:

zend_auth::getinstance()->getstorage()->getnamespace()->setexpirationhops(1); 

haven't tried might work.


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -