purge() 공개 메소드

Clear the session data.
public purge ( ) : null
리턴 null
예제 #1
0
파일: Base.php 프로젝트: raz0rsdge/horde
 /**
  * Reset the current session information in case it does not match the
  * authentication information anymore.
  *
  * @param string $user The user the session information is being requested
  *                     for. This is usually empty, indicating the current
  *                     user.
  *
  * @return boolean True if the session is still valid.
  */
 public function validate($user = null)
 {
     $mail = $this->_session->getMail();
     if ($this->_auth != $mail) {
         $this->_session->purge();
         return false;
     }
     if (empty($user)) {
         return true;
     }
     if ($user != $mail && $user != $this->_session->getUid()) {
         $this->_session->purge();
         return false;
     }
     return true;
 }
예제 #2
0
파일: Base.php 프로젝트: raz0rsdge/horde
 /**
  * Clear the session data.
  *
  * @return NULL
  */
 public function purge()
 {
     $this->_session->purge();
 }