FreenetIS
 All Classes Namespaces Functions Variables Pages
Static Public Member Functions | List of all members
cookie Class Reference

Static Public Member Functions

static set ($name, $value=NULL, $expire=NULL, $path=NULL, $domain=NULL, $secure=NULL, $httponly=NULL, $prefix=NULL)
 Sets a cookie with the given parameters.
static get ($name, $prefix=NULL, $xss_clean=FALSE)
 Fetch a cookie value, using the Input library.
static delete ($name, $path=NULL, $domain=NULL, $prefix=NULL)
 Nullify and unset a cookie.

Member Function Documentation

static cookie::delete (   $name,
  $path = NULL,
  $domain = NULL,
  $prefix = NULL 
)
static

Nullify and unset a cookie.

Parameters
stringcookie name
stringURL path
stringURL domain
stringcollision-prevention prefix
Returns
boolean
static cookie::get (   $name,
  $prefix = NULL,
  $xss_clean = FALSE 
)
static

Fetch a cookie value, using the Input library.

Parameters
stringcookie name
stringcollision-prevention prefix
booleanuse XSS cleaning on the value
Returns
string
static cookie::set (   $name,
  $value = NULL,
  $expire = NULL,
  $path = NULL,
  $domain = NULL,
  $secure = NULL,
  $httponly = NULL,
  $prefix = NULL 
)
static

Sets a cookie with the given parameters.

Parameters
stringcookie name or array of config options
stringcookie value
integernumber of seconds before the cookie expires
stringURL path to allow
stringURL domain to allow
booleanHTTPS only
booleanHTTP only (requires PHP 5.2 or higher)
stringcollision-prevention prefix
Returns
boolean

The documentation for this class was generated from the following file: