setcookie
setcookie |
Purpose
Define or update a cookie.
Synopsis
procedure setcookie(name:string, value:text, domain:text, path:text, exp:integer)
Arguments
name
|
Cookie name
|
value
|
Associated value
|
domain
|
Domain of the cookie: if it does not start with a dot the domain is interpreted as a host name and the cookie is a
host only cookie
|
path
|
Path in the domain
|
exp
|
Expiration time: with a negative value the cookie is deleted; with
0 the cookie never expires (
session cookie) and a positive value is interpreted as an amount of time in seconds after which the cookie will expire
|
Further information
This procedure adds a cookie to the cookie store. If an existing cookie has the same name, domain and path as those specified to the procedure its value and expiration information is updated.
Related topics
Module