public class Cookie |
Return to package list |
Version: 1.0
Date: 2001-05-29 11:05:37
Author: John Luxford <lux@simian.ca> <http://www.simian.ca/>
Summary Cookie is a class that is used to give auto-generated Cookie variables their own distinct namespace, so as not to conflict with other auto-generated variables, such as CGI data. The Cookie class gets its data from the $HTTP_COOKIE_VARS hash.
Example $cookie = new Cookie; if (! empty ($cookie->session_id)) { // do something with the cookie } else { // set the cookie $cookie->set ("session_id", "value", 1800, "/", ".site.com", 0); }
Properties |
Summary Contains a list of the names of all the cookie variables available to the current script.
Methods |
Summary Constructor method.
Summary Sends a 'set-cookie' HTTP header to the browser. Must be called before any data has been sent. $expire is the number of seconds from the current time. $domain must contain at least two periods (.). $secure accepts a 1 or a 0 to denote true or false.
This file was created by DocReader, an Open Source class documentation system.
Visit Simian Systems to learn more.