Example #1
0
 /**
  * Removes an existing authentication token from the location determined by the session
  * namespace and token member name currently set for this object
  *
  * @return void
  */
 public function logout()
 {
     require_once 'Zend/Session/Core.php';
     if (!Zend_Session_Core::isStarted()) {
         Zend_Session_Core::start();
     }
     Zend_Session_Core::setOptions(array('strict' => true));
     require_once 'Zend/Session.php';
     $session = new Zend_Session($this->_sessionNamespace, Zend_Session::SINGLE_INSTANCE);
     if (!isset($session->{$this->_sessionTokenName})) {
         unset($session->{$this->_sessionTokenName});
     }
 }