예제 #1
0
 /** @return bool */
 private function isUserChangeState()
 {
     if (!$this->userStorage->isAuthenticated()) {
         return $this->sessionStorage->checkLogout();
     }
     $this->sessionStorage->login();
     return FALSE;
 }
예제 #2
0
파일: Facebook.php 프로젝트: kdyby/facebook
 /**
  * Destroy the current session
  */
 public function destroySession()
 {
     $this->accessToken = NULL;
     $this->signedRequest = NULL;
     $this->user = NULL;
     $this->session->clearAll();
     // Javascript sets a cookie that will be used in getSignedRequest that we need to clear if we can
     $cookieName = $this->config->getSignedRequestCookieName();
     if (array_key_exists($cookieName, $this->httpRequest->getCookies())) {
         $this->httpResponse->deleteCookie($cookieName, '/', $this->getBaseDomain());
         unset($_COOKIE[$cookieName]);
     }
 }