41 public function getName(): string;
66 public function getPath(): ?string;
withSamesite(string $sameSite)
Sets the samesite attribute.
__toString()
Returns the string representation of the object.
withMaxAge(int $maxAge=null)
Maximal life time of the cookie in seconds.
withPath(string $path=null)
Sets the cookie path.
withSecure(bool $secure=null)
Sets if the cookie is a secure cookie or not.
expire()
Expire the cookie.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getDomain()
Cookie domain.
withValue(string $value=null)
Sets the cookie value.
withHttpOnly(bool $httpOnly=null)
Sets if the cookie is http only.
rememberForLongTime()
Sets the expiration date to +5 years.
getHttpOnly()
True if the cookie is http only otherwise false.
getSecure()
True if it's secure cookie otherwise false.
getExpires()
Expiration date as unix timestamp.
getMaxAge()
Max age measured in seconds.
withExpires($expires=null)
Sets the expiration date of the cookie.
getSamesite()
Cookie samesite.
withDomain(string $domain=null)
Sets the domain name for the cookie.