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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.