title: Session locking issue in zend server
body: <p>I have a functionality to show alert to logged in user before 10 minutes prior to session expiry.A confirmation will be shown to the user before 10 minutes to the session expiry if he is idle for a specified time.f he wish to continue with the current session he can do that or he can extend the session.So i implemented it like the following.</p>
  
  <pre><code>  //For extending the session expiry
      public function extendsessionAction(){
          $sessTimeOut        = 1440;
          $session            = new Zend_Session_Namespace('Zend_Auth');
          $session-&gt;reqTime   = time();
          $session-&gt;setExpirationSeconds($sessTimeOut);
          $warnTime           = 3000;
          $session-&gt;warnTime  = $warnTime;
  
          $this-&gt;getHelper('viewRenderer')-&gt;setNoRender();
          $this-&gt;_helper-&gt;layout()-&gt;disableLayout();
      }
  //For checking the session expiry
      public function checksessionexpiryAction(){
          $session            = new Zend_Session_Namespace('Zend_Auth');
          $reqTime            = $session-&gt;reqTime;
          $warnTime           = $session-&gt;warnTime;
          $sessTimeOut        = 1440;
  
          if((time() - $reqTime) &gt;= $warnTime){
              echo 'Warning';
          }
          else if((time() - $reqTime) &gt;= $sessTimeOut){
              echo 'Logout';
          }
          else{
              echo 'Continue';
          }
  
          $this-&gt;getHelper('viewRenderer')-&gt;setNoRender();
          $this-&gt;_helper-&gt;layout()-&gt;disableLayout();
      }
  </code></pre>
  
  <p>And the following is the client side code used which is written in the header template so it will be included in all the pages</p>
  
  <pre><code>$(document).ready(function(){
      extendSessionExpiry();
      checkSessionTimeEvent = setInterval("checkSessionExpiry()",8 * 60000);
  });
  
  function extendSessionExpiry(){
      $.ajax({
          url     : base_url+'/default/Dashboard/extendsession',
          type    : 'post',
          dataType: 'json',
          success : function(result){
          }
      });
  }
  
  function checkSessionExpiry(){
      $.ajax({
          url     : base_url+'/default/Dashboard/checksessionexpiry',
          type    : 'post',
          success : function(result){
              if(result == 'Warning'){
                  showSessionWarning();//Will show a popup to continue or extend the session.Extending the session will call extendSessionExpiry()
              }
              else if(result == 'Logout'){
                  dontWarn();
                  window.location = base_url+'/Index/logout';
              }
          }
      });
  }
  </code></pre>
  
  <p>So i am using zend server in my application.My problem is that if opened the application in more than one tabs then it will go to logout.That means the session is getting expired.I heared that this is something related to zend severs session clustering locking mechanism.Can somebody explain what is the excat problem is.</p>