Jump to content

zend_auth session time runnign out


nadeemshafi9

Recommended Posts

hi guys

 

im using zend_auth in zend framework, i log in and after like 20 mins or 15 of inactivity my session dies out and my app has a fit.

 

is there nay ways of making the session that zend_auth itself uses longer or even handle its runnign out ???.

 

 

zend_auth is a singleton and is instantiated and then got only once in teh bootstrap and is available everywhere just by getting its instance

thanks guys

 

$auth = Zend_Auth::getInstance();

// this is a standard session 
$myNamespace = new Zend_Session_Namespace('myNamespace');

// zend auth uses its own session
$auth->getStorage()->write($user_row);

// i can take it from zend auths session and put it into a standard session
$myNamespace->user_group = Zend_Auth::getInstance()->getIdentity()->group;

Link to comment
https://forums.phpfreaks.com/topic/165372-zend_auth-session-time-runnign-out/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.