title: setting and extending Session Lifetime using Zend_Auth
body: <p>i use Zend_Auth for one of my Projects, but so far haven't figured out how to set the Lifetime for the Session, or how to extend it (lets say it should run 5 minutes and should reset to that when the user makes an action), here is my Initialization code:</p>
  
  <pre><code>        $authAdapter = new Zend_Auth_Adapter_DbTable($this-&gt;_model-&gt;pdo);
          $authAdapter-&gt;setTableName('normal_folks')
             -&gt;setIdentityColumn('username')
             -&gt;setCredentialColumn('password');
  
          $post = $this-&gt;_request-&gt;getPost();
  
          $authAdapter-&gt;setIdentity($post['username'])
              -&gt;setCredential($post['password']);
          $auth = Zend_Auth::getInstance();
          $result = $auth-&gt;authenticate($authAdapter);
  
          if($result-&gt;isValid())
          {
              $userInfo = $authAdapter-&gt;getResultRowObject(null, 'password');
              $authStorage = $auth-&gt;getStorage();
              $authStorage-&gt;write($userInfo);
  
              if(strlen($post['refferer']) &gt; 1){
                  header("Location: ".$post['refferer']);
              }elseif(strlen($this-&gt;_request-&gt;getParam('ref_action')) &gt; 1){
                  Zend_Controller_Action::_forward($this-&gt;_request-&gt;getParam('ref_action'),"admin",null,null);
              }else{
                  Zend_Controller_Action::_forward("index","admin",null,null);
              }
          }
  </code></pre>
  
  <p>Ant this how i check if the user is logged in:</p>
  
  <pre><code>                if(Zend_Auth::getInstance()-&gt;hasIdentity()){
                      echo "Woho!";
                  }else{
                      die("invalid-identity");
                  }
  </code></pre>
  
  <p>Its probably right there in front of me but I just can't figure it out, help? Please? Pretty Please? :D</p>