예제 #1
0
파일: Sso.php 프로젝트: rroslaniec/cas
 /**
  * This method is used to logout from CAS
  *
  * @param string $service a URL that will be transmitted to the CAS server to do a redirect after logout
  *
  * @return none
  */
 public function logout($service = "")
 {
     if (phpCAS::isSessionAuthenticated()) {
         if ($this->auth->check()) {
             $this->auth->logout();
         }
         $this->session->flush();
         if ($service != "") {
             phpCAS::logoutWithRedirectService($service);
         } else {
             phpCAS::logout();
         }
         exit;
     }
 }
예제 #2
0
 /**
  * Clear all the values in storage.
  *
  * @return null
  */
 public function clear()
 {
     $this->session->flush($this->storageKey);
 }