- Introduction
- License
- History
- Compilation & Hosting
- Configuration File
- Modules:
- FAQ
- Links
- Credits
|
Declaration:
-
function web_set_cookie_ex(const name, value, path, domain, expires: string): boolean;
function web_set_cookief_ex(const name: string; value: double; const path, domain, expires: string): boolean;
function web_set_cookiei_ex(const name: string; value: longint; const path, domain, expires: string): boolean;
Arguments:
-
name |
Variable name |
value |
Variable value |
path |
Path on server (doc root relative) |
domain |
Domain name |
expires |
Expiration date |
Description:
-
Sets custom cookie variable. If output_buffering is disabled this call is valid only before any output (web_print[xxx] calls).
Returns:
-
TRUE on success, FALSE on error.
Usage:
-
web_set_cookie_ex('foo', 'bar', '/cgi-bin/mydir', 'www.server.net', 'Fri, 09 Sep 2005 12:00:00 GMT');
web_set_cookief_ex('cash', 120.25, '/cgi-bin/mydir', 'www.server.net', 'Fri, 09 Sep 2005 12:00:00 GMT');
web_set_cookiei_ex('count', 356, '/cgi-bin/mydir', 'www.server.net', 'Fri, 09 Sep 2005 12:00:00 GMT');
See also:
-
web_get_cookie, web_set_cookie, web_unset_cookie_ex.
|