Esempio n. 1
0
 /**
  * Logout from session
  *
  * @access  public
  * @param   bool    $prepare_new_session Preparing new session for incoming request
  * @return  void
  * @see Jaws_Session::Logout
  */
 function Logout($prepare_new_session = true)
 {
     parent::Logout($prepare_new_session);
     if ($prepare_new_session) {
         $this->SetCookie(JAWS_SESSION_NAME, $this->_SessionID . '-' . $this->GetAttribute('salt'), 0, true);
     } else {
         $this->DestroyCookie(JAWS_SESSION_NAME);
     }
 }
Esempio n. 2
0
 /**
  * Initializes the Jaws application object
  *
  * @access  public
  */
 function init()
 {
     $this->Map->Init();
     $this->Session = Jaws_Session::factory();
     $this->Session->Init();
     $logged_user = $GLOBALS['app']->Session->GetAttributes('user', 'groups');
     $this->ACL->Init($logged_user['user'], $logged_user['groups']);
     $this->loadPreferences();
 }