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 -

Socket.connect doesn't throw exception in Android -

iphone - How do I keep MDScrollView from truncating my row headers and making my cells look bad? -