File/functions/cookie_functions.php

Description

CodeIgniter

An open source application development framework for PHP 4.3.2 or newer

Functions
delete_cookie (line 124)

Delete a COOKIE

void delete_cookie ([mixed $name = ''], [string $domain = ''], [string $path = '/'], [string $prefix = ''])
  • mixed $name
  • string $domain: the cookie domain. Usually: .yourdomain.com
  • string $path: the cookie path
  • string $prefix: the cookie prefix
get_cookie (line 105)

Fetch an item from the COOKIE array

  • access: public
mixed get_cookie ([string $index = ''], [bool $xss_clean = FALSE])
  • string $index
  • bool $xss_clean
set_cookie (line 44)

Set cookie

Accepts six parameter, or you can submit an associative array in the first parameter containing all the values.

  • access: public
void set_cookie ([mixed $name = ''], [string $value = ''], [string $expire = ''], [string $domain = ''], [string $path = '/'], [string $prefix = ''])
  • mixed $name
  • string $value: the value of the cookie
  • string $expire: the number of seconds until expiration
  • string $domain: the cookie domain. Usually: .yourdomain.com
  • string $path: the cookie path
  • string $prefix: the cookie prefix

Documentation generated on Tue, 22 Nov 2011 13:28:51 -0200 by phpDocumentor 1.4.3