예제 #1
0
 public function __construct(array $options = array(), \Nette\Http\Request $request, \Nette\Http\Response $response)
 {
     $this->_cookies = $request->getCookies();
     $this->_request = $request;
     $this->_response = $response;
     $this->setOptions($options);
 }
예제 #2
0
파일: Facebook.php 프로젝트: vboss/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]);
     }
 }
예제 #3
0
 public function getCookies()
 {
     return $this->request->getCookies();
 }