ILIAS
release_8 Revision v8.19-1-g4e8f2f9140c
|
Public Member Functions | |
create (string $name, string $value=null) | |
Create a new cookie with the given name and value. More... | |
createRememberedForLongTime (string $name, string $value=null) | |
Create a new cookie with the given name and value which expires in 5 years. More... | |
createExpired (string $name) | |
Creates an already expired cookie. More... | |
fromSetCookieString (string $string) | |
Creates the cookie from the cookie string. More... | |
Definition at line 28 of file CookieFactory.php.
ILIAS\HTTP\Cookies\CookieFactory::create | ( | string | $name, |
string | $value = null |
||
) |
Create a new cookie with the given name and value.
string | $name | The unique cookie name. |
null | string | $value | Cookie value. |
Implemented in ILIAS\HTTP\Cookies\CookieFactoryImpl.
ILIAS\HTTP\Cookies\CookieFactory::createExpired | ( | string | $name | ) |
Creates an already expired cookie.
This is useful if the cookie should be deleted at the client end.
string | $name | Cookie name. |
Implemented in ILIAS\HTTP\Cookies\CookieFactoryImpl.
ILIAS\HTTP\Cookies\CookieFactory::createRememberedForLongTime | ( | string | $name, |
string | $value = null |
||
) |
Create a new cookie with the given name and value which expires in 5 years.
string | $name | The unique cookie name. |
null | string | $value | Cookie value. |
Implemented in ILIAS\HTTP\Cookies\CookieFactoryImpl.
ILIAS\HTTP\Cookies\CookieFactory::fromSetCookieString | ( | string | $string | ) |
Creates the cookie from the cookie string.
string | $string | Cookie string. |
Implemented in ILIAS\HTTP\Cookies\CookieFactoryImpl.