An interface to describe a CMSMS cookie manager.
| package |
CMS |
|---|---|
| since | 2.3 |
| license |
GPL |
get(string $key) : mixed
string $keyThe name of the cookie
mixed
The output may be null, or a string or another data type.
set(string $key, $value, integer $expires) : boolean
string $keyThe name of the cookie
$valueinteger $expiresThe default expiry timestamp. if 0 is specified, then a session cookie is created.
boolean
true on success
exists(string $key) : boolean
string $keyThe name of the cookie
boolean
erase(string $key)
string $keyThe name of the cookie