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