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.
expire()
Expire the cookie.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
withPath(?string $path=null)
Sets the cookie path.
getDomain()
Cookie domain.
withHttpOnly(?bool $httpOnly=null)
Sets if the cookie is http only.
withSecure(?bool $secure=null)
Sets if the cookie is a secure cookie or not.
withMaxAge(?int $maxAge=null)
Maximal life time of the cookie in seconds.
rememberForLongTime()
Sets the expiration date to +5 years.
withDomain(?string $domain=null)
Sets the domain name for the cookie.
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.
withValue(?string $value=null)
Sets the cookie value.
getMaxAge()
Max age measured in seconds.
withExpires($expires=null)
Sets the expiration date of the cookie.
getSamesite()
Cookie samesite.