ILIAS  release_8 Revision v8.19-1-g4e8f2f9140c
All Data Structures Namespaces Files Functions Variables Modules Pages
ILIAS\HTTP\Cookies\CookieFactory Interface Reference
+ Inheritance diagram for ILIAS\HTTP\Cookies\CookieFactory:
+ Collaboration diagram for ILIAS\HTTP\Cookies\CookieFactory:

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...
 

Detailed Description

Definition at line 28 of file CookieFactory.php.

Member Function Documentation

◆ create()

ILIAS\HTTP\Cookies\CookieFactory::create ( string  $name,
string  $value = null 
)

Create a new cookie with the given name and value.

Parameters
string$nameThe unique cookie name.
null | string$valueCookie value.

Implemented in ILIAS\HTTP\Cookies\CookieFactoryImpl.

◆ createExpired()

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.

Parameters
string$nameCookie name.

Implemented in ILIAS\HTTP\Cookies\CookieFactoryImpl.

◆ createRememberedForLongTime()

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.

Parameters
string$nameThe unique cookie name.
null | string$valueCookie value.

Implemented in ILIAS\HTTP\Cookies\CookieFactoryImpl.

◆ fromSetCookieString()

ILIAS\HTTP\Cookies\CookieFactory::fromSetCookieString ( string  $string)

Creates the cookie from the cookie string.

Parameters
string$stringCookie string.

Implemented in ILIAS\HTTP\Cookies\CookieFactoryImpl.


The documentation for this interface was generated from the following file: