ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Public Member Functions | |
getName () | |
Cookie name. More... | |
getValue () | |
Cookie value. More... | |
getExpires () | |
Expiration date as unix timestamp. More... | |
getMaxAge () | |
Max age measured in seconds. More... | |
getPath () | |
Cookie path. More... | |
getDomain () | |
Cookie domain. More... | |
getSecure () | |
True if it's secure cookie otherwise false. More... | |
getHttpOnly () | |
True if the cookie is http only otherwise false. More... | |
withValue ($value=null) | |
Sets the cookie value. More... | |
withExpires ($expires=null) | |
Sets the expiration date of the cookie. More... | |
rememberForLongTime () | |
Sets the expiration date to +5 years. More... | |
expire () | |
Expire the cookie. More... | |
withMaxAge ($maxAge=null) | |
Maximal life time of the cookie in seconds. More... | |
withPath ($path=null) | |
Sets the cookie path. More... | |
withDomain ($domain=null) | |
Sets the domain name for the cookie. More... | |
withSecure ($secure=null) | |
Sets if the cookie is a secure cookie or not. More... | |
withHttpOnly ($httpOnly=null) | |
Sets if the cookie is http only. More... | |
__toString () | |
Returns the string representation of the object. More... | |
Definition at line 16 of file Cookie.php.
ILIAS\HTTP\Cookies\Cookie::__toString | ( | ) |
Returns the string representation of the object.
Implemented in ILIAS\HTTP\Cookies\CookieWrapper.
ILIAS\HTTP\Cookies\Cookie::expire | ( | ) |
Expire the cookie.
Useful if the cookie should be deleted at the client side.
Implemented in ILIAS\HTTP\Cookies\CookieWrapper.
ILIAS\HTTP\Cookies\Cookie::getDomain | ( | ) |
ILIAS\HTTP\Cookies\Cookie::getExpires | ( | ) |
ILIAS\HTTP\Cookies\Cookie::getHttpOnly | ( | ) |
True if the cookie is http only otherwise false.
Implemented in ILIAS\HTTP\Cookies\CookieWrapper.
ILIAS\HTTP\Cookies\Cookie::getMaxAge | ( | ) |
Max age measured in seconds.
If the max age is zero no max age is set.
Implemented in ILIAS\HTTP\Cookies\CookieWrapper.
ILIAS\HTTP\Cookies\Cookie::getName | ( | ) |
Cookie name.
Implemented in ILIAS\HTTP\Cookies\CookieWrapper.
Referenced by ilWACTokenTest\testCookieGeneration().
ILIAS\HTTP\Cookies\Cookie::getPath | ( | ) |
ILIAS\HTTP\Cookies\Cookie::getSecure | ( | ) |
True if it's secure cookie otherwise false.
Implemented in ILIAS\HTTP\Cookies\CookieWrapper.
ILIAS\HTTP\Cookies\Cookie::getValue | ( | ) |
ILIAS\HTTP\Cookies\Cookie::rememberForLongTime | ( | ) |
Sets the expiration date to +5 years.
Implemented in ILIAS\HTTP\Cookies\CookieWrapper.
ILIAS\HTTP\Cookies\Cookie::withDomain | ( | $domain = null | ) |
Sets the domain name for the cookie.
null | string | $domain | Cookie domain. |
Implemented in ILIAS\HTTP\Cookies\CookieWrapper.
ILIAS\HTTP\Cookies\Cookie::withExpires | ( | $expires = null | ) |
Sets the expiration date of the cookie.
If the cookie should be expired please use the expire function.
If the expires parameter equals null, then the expires key will be removed from the cookie.
null | \DateTimeInterface | int | string | $expires | The expiration time of the Cookie. |
Implemented in ILIAS\HTTP\Cookies\CookieWrapper.
ILIAS\HTTP\Cookies\Cookie::withHttpOnly | ( | $httpOnly = null | ) |
Sets if the cookie is http only.
null | bool | $httpOnly | http only flag. |
Implemented in ILIAS\HTTP\Cookies\CookieWrapper.
ILIAS\HTTP\Cookies\Cookie::withMaxAge | ( | $maxAge = null | ) |
Maximal life time of the cookie in seconds.
The most browser prefer max age over expiration date.
null | int | $maxAge | Lifetime in seconds. |
Implemented in ILIAS\HTTP\Cookies\CookieWrapper.
ILIAS\HTTP\Cookies\Cookie::withPath | ( | $path = null | ) |
Sets the cookie path.
null | string | $path | The cookie path. |
Implemented in ILIAS\HTTP\Cookies\CookieWrapper.
ILIAS\HTTP\Cookies\Cookie::withSecure | ( | $secure = null | ) |
Sets if the cookie is a secure cookie or not.
null | bool | $secure | Secure flag. |
Implemented in ILIAS\HTTP\Cookies\CookieWrapper.
ILIAS\HTTP\Cookies\Cookie::withValue | ( | $value = null | ) |
Sets the cookie value.
null | string | $value | The cookie value. |
Implemented in ILIAS\HTTP\Cookies\CookieWrapper.