Пример #1
0
 public function storeCookie()
 {
     $hash = $this->getCookieHash();
     $cookieValue = $this->getPK() . ':' . $hash;
     $cookie = new Ajde_Cookie(Config::get('ident') . '_user');
     $cookie->setLifetime($this->cookieLifetime);
     $cookie->set('auth', $cookieValue);
     return true;
 }
Пример #2
0
 public function storeCookie($includeDomain = true)
 {
     $hash = $this->getCookieHash($includeDomain);
     $cookieValue = $this->getPK() . ':' . $hash;
     $cookie = new Ajde_Cookie(config('app.id') . '_user', true);
     $cookie->setLifetime($this->cookieLifetime);
     $cookie->set('auth', $cookieValue);
     return true;
 }