Syntax of the Set-Cookie HTTP Response Header
This is the format a CGI script would use to add to the HTTP
headers a new piece of
data which is to be stored by the client for later
retrieval.
Set-Cookie: NAME=VALUE; expires=DATE;
path=PATH; domain=DOMAIN_NAME; secure
NAME=VALUE
This string is a sequence of characters excluding
semi-colon, comma and white
space. If there is a need to place such data in the name
or value, some encoding
method such as URL style %XX encoding is recommended,
though no encoding is
defined or required.
This is the only required attribute on the Set-Cookie
header.
expires=DATE
The expires attribute specifies a date string that
defines the valid life time of
that cookie. Once the expiration date has been reached,
the cookie will no longer
be stored or given out.
The date string is formatted as:
Wdy, DD-Mon-YYYY HH:MM:SS GMT
This is based on RFC 822, RFC 850, RFC 1036, and RFC
1123, with the variations
that the only legal time zone is GMT and the separators
between the elements of
the date must be dashes.
expires is an optional attribute. If not specified, the
cookie will expire when the user's session ends.
---------------------------------------------------------
Posledniq red mislq che obqsnqwa kakwo trqbwa da se
naprawi,
ako iskash da widish celiq dokument :
http://home.mcom.com/newsref/std/cookie_spec.html
|