Exemple #1
0
 protected function _write()
 {
     $this->cache->save($this->sessionid, $this->__toString(), $this->lifetime);
     $this->updateid = $this->sessionid;
     Cookie::$httponly = TRUE;
     Cookie::set($this->name, $this->sessionid, $this->lifetime);
     Cookie::$httponly = FALSE;
     return TRUE;
 }
Exemple #2
0
 public function _initCookie($dispatcher)
 {
     $config = Yaf\Registry::get('config')->cookie;
     if ($config) {
         Cookie::$salt = (string) $config->salt;
         Cookie::$expiration = (int) $config->expire;
         Cookie::$path = (string) $config->path;
         Cookie::$domain = (string) $config->domain;
         Cookie::$secure = (bool) $config->secure;
         Cookie::$httponly = (bool) $config->httponly;
     }
 }