SproutCMS

This is the code documentation for the SproutCMS project

function set()

Sets a cookie with the given parameters.

Usage

boolean Cookie::set ( string $name [, string $value [, integer $expire [, string $path [, string $domain [, boolean $secure [, boolean $httponly ]]]]]] );

Arguments

  1. string $name
    cookie name
  2. string $value = NULL
    cookie value
  3. integer $expire = NULL
    number of seconds before the cookie expires
  4. string $path = NULL
    URL path to allow
  5. string $domain = NULL
    URL domain to allow
  6. boolean $secure = NULL
    HTTPS only
  7. boolean $httponly = NULL
    HTTP only (requires PHP 5.2 or higher)

Return value

  • boolean