CookieInterface
interface CookieInterface (View source)
Object cookie interface
Constants
COOKIE_MAX_SIZE |
|
Methods
setName(string $name)
Set cookie name
string
getName()
Get cookie name
setValue(string $value, bool $serialize)
Set value of cookie
string
getValue(bool $unserialize)
Get cookie value
setExpire(integer $time)
Set cookie's expiration time
setPath(string $location)
Set cookie's path
setDomain(string $domain)
Set cookie's domain
setSecure(bool $mode)
Set if the cookie should be transmitted only via https
setHttponly($mode)
Set if cookie should be available only to HTTP protocol
boolean
save()
Set cookie
load()
Get cookie
bool
delete()
Delete cookie
bool
exists()
Check if cookie exists
Details
at line 41
CookieInterface
setName(string $name)
Set cookie name
at line 49
string
getName()
Get cookie name
at line 65
CookieInterface
setValue(string $value, bool $serialize)
Set value of cookie
at line 76
string
getValue(bool $unserialize)
Get cookie value
at line 88
CookieInterface
setExpire(integer $time)
Set cookie's expiration time
at line 100
CookieInterface
setPath(string $location)
Set cookie's path
at line 112
CookieInterface
setDomain(string $domain)
Set cookie's domain
at line 122
CookieInterface
setSecure(bool $mode)
Set if the cookie should be transmitted only via https
at line 130
CookieInterface
setHttponly($mode)
Set if cookie should be available only to HTTP protocol
at line 137
boolean
save()
Set cookie
at line 145
CookieInterface
load()
Get cookie
at line 152
bool
delete()
Delete cookie
at line 159
bool
exists()
Check if cookie exists