Class constructor
void
__construct
([string $domain = null], [string $directory = null], [string $keyPrefix = null])
-
string
$domain
-
string
$directory
-
string
$keyPrefix
Delete specified cookie
void
delete
(string $sKey, [boolean $fIngorePrefix = false])
-
string
$sKey
-
boolean
$fIngorePrefix: if true ignore eventually key prefix
Check if cookie exists return true if the cookie exists, false otherwise
boolean
exists
(string $sKey, [boolean $fIngorePrefix = false])
-
string
$sKey
-
boolean
$fIngorePrefix: if true ignore eventually key prefix
Get cookie value It returns the value of specified cookie
mixed
get
(string $sKey, [boolean $fIngorePrefix = false])
-
string
$sKey
-
boolean
$fIngorePrefix: if true ignore eventually key prefix
string
getPathOnServer
()
Set and create cookie It set cookie with all parameters managed by this object.
boolean
set
(string $sKey, mixed $values, [int $expireTime = null], [boolean $fIngorePrefix = false])
-
string
$sKey
-
mixed
$values
-
int
$expireTime
-
boolean
$fIngorePrefix: if true ignore eventually key prefix
void
setDomain
(string $sDomain)
void
setExpireTime
(int $iExpireTime)
void
setKeyPrefix
(string $sKeyPrefix)
void
setPathOnServer
(string $sPathOnServer)