/** * @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); }
/** * @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]); }