original_string: protected function _initSession()
      {
          $this->bootstrap('project'); // Make sure the project is available
          $session = new \Zend_Session_Namespace('gems.' . GEMS_PROJECT_NAME . '.session');
  
          $idleTimeout = $this->project->getSessionTimeOut();
  
          $session->setExpirationSeconds($idleTimeout);
  
          if (! isset($session->user_role)) {
              $session->user_role = 'nologin';
          }
  
          // Since userloading can clear the session, we put stuff that should remain (like redirect info)
          // in a different namespace that we call a 'static session', use getStaticSession to access.
          $this->staticSession = new \Zend_Session_Namespace('gems.' . GEMS_PROJECT_NAME . '.sessionStatic');
  
          return $session;
      }
code: protected function _initSession()
      {
          $this->bootstrap('project'); // Make sure the project is available
          $session = new \Zend_Session_Namespace('gems.' . GEMS_PROJECT_NAME . '.session');
  
          $idleTimeout = $this->project->getSessionTimeOut();
  
          $session->setExpirationSeconds($idleTimeout);
  
          if (! isset($session->user_role)) {
              $session->user_role = 'nologin';
          }
  
          // Since userloading can clear the session, we put stuff that should remain (like redirect info)
          // in a different namespace that we call a 'static session', use getStaticSession to access.
          $this->staticSession = new \Zend_Session_Namespace('gems.' . GEMS_PROJECT_NAME . '.sessionStatic');
  
          return $session;
      }
code_tokens: protected function _initSession ( ) { $ this -> bootstrap ( 'project' ) ; // Make sure the project is available $ session = new \ Zend_Session_Namespace ( 'gems.' . GEMS_PROJECT_NAME . '.session' ) ; $ idleTimeout = $ this -> project -> getSessionTimeOut ( ) ; $ session -> setExpirationSeconds ( $ idleTimeout ) ; if ( ! isset ( $ session -> user_role ) ) { $ session -> user_role = 'nologin' ; } // Since userloading can clear the session, we put stuff that should remain (like redirect info) // in a different namespace that we call a 'static session', use getStaticSession to access. $ this -> staticSession = new \ Zend_Session_Namespace ( 'gems.' . GEMS_PROJECT_NAME . '.sessionStatic' ) ; return $ session ; }
docstring: Initialize the Gems session.
  
  The session contains information on the registered user from @see $this->loadLoginInfo($username)
  This includes:
  -- user_id
  -- user_login
  -- user_name
  -- user_role
  -- user_locale
  -- user_organization_id
  
  Use $this->session to access afterwards
  
  @deprecated since 1.5
  @return \Zend_Session_Namespace
docstring_tokens: Initialize the Gems session .