Methods summary
public static
boolean
|
#
set( String $cookieName, String $cookieValue = null, integer $expiryDays = 365, String $path = null, String $domain = null, boolean $secure = null, boolean $httpOnly = null )
Set a Cookie
Parameters
- $cookieName
- $cookieValue
- [optional]
- $expiryDays
- [optional]
- $path
- [optional]
- $domain
- [optional]
- $secure
- [optional]
- $httpOnly
- [optional]
Returns
boolean
|
public static
String/array
|
#
get( null $cookieName = null )
Get value of a cookie or get all cookies
Get value of a cookie or get all cookies
Parameters
- $cookieName
- $cookieName [optional]
Returns
String/array if exists | null if cookie does not exist
|
public static
boolean
|
#
has( $cookieName )
Checks if cookie exists or not
Checks if cookie exists or not
Parameters
Returns
boolean
|
public static
boolean
|
#
delete( String $cookieName = null )
Delete a cookie or all cookies
Delete a cookie or all cookies
Parameters
Returns
boolean
|