A simple static class providing convenience utilities for working with cookies.
| package |
CMS |
|---|---|
| license |
GPL |
| author |
Robert Campbell |
| copyright |
Copyright (c) 2010, Robert Campbell calguy1000@cmsmadesimple.org |
| since | 1.10 |
| deprecated |
See ICookieManager |
set(string $key, string $value, integer $expire) : boolean
string $keyThe cookie name
string $valueThe cookie value
integer $expireUnix timestamp of the time the cookie will expire. By default cookies that expire when the browser closes will be created.
boolean
get(string $key) : \mixed.
string $keyThe cookie name
\mixed.
Null if the cookie does not exist, otherwise the data stored.
exists(string $key) : boolean
string $keyThe cookie name.
boolean
erase(string $key)
string $keyThe cookie name