Пример #1
0
 /**
  * @param string     $name
  * @param string     $value
  * @param int        $expire
  * @param string     $path
  * @param string     $domain
  * @param bool|false $secure
  * @param bool|true  $httponly
  * @return string
  */
 function set($name, $value, $expire = null, $path = null, $domain = null, $secure = null, $httponly = null)
 {
     return $this->cookies->set($name, $value, $expire, $path, $domain, $secure, $httponly);
 }
Пример #2
0
 /**
  * @param $name
  * @param array $params
  */
 protected function removeSessionCookie($name, array $params = [])
 {
     $this->cookies ? $this->cookies->remove($name, $params[Arg::PATH], $params[Arg::DOMAIN], $params[Arg::SECURE]) : setcookie($name, false, 946706400, $params[Arg::PATH], $params[Arg::DOMAIN], $params[Arg::SECURE]);
 }