21use Dflydev\FigCookies\SetCookie;
38 public function create(
string $name, ?
string $value =
null):
Cookie
49 return new CookieWrapper(SetCookie::createRememberedForever($name, $value));
67 return new CookieWrapper(SetCookie::fromSetCookieString($string));
create(string $name, ?string $value=null)
Create a new cookie with the given name and value.
createExpired(string $name)
Creates an already expired cookie.This is useful if the cookie should be deleted at the client end.
fromSetCookieString(string $string)
Creates the cookie from the cookie string.
createRememberedForLongTime(string $name, ?string $value=null)
Create a new cookie with the given name and value which expires in 5 years.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...