Five different attributes make up a cookie. They tell the client how the cookie is to be used and stored. Noneof the attribute names are case sensitive. To separate the different attributes from each other in the cookie string, insert a semi-colon between them. Apart from the name/value pair, all the other attributes are optional and, if they aren't present, they are assigned default values.
Available Cookie Attributes
______________________________________________________________________________________________
Attribute
Function
_____________________________________________________________________________________________
NAME=VALUE
The name and value of the cookie. They are plain-text strings.
Expires=DATE Marks how long a cookie is valid. Default value is the current session.
Path=PATH
Restricts which URLs a cookie is sent to. Default is the document
that created
the cookie.
Domain=DOMAIN_NAME Restricts
what hosts a cookie is sent to. Default is the host-name that created
the cookie.
Secure
Indicates that the cookie should be sent only if the current connection
is done
over a secure protocol. Default means all types of transfers are
ok.
______________________________________________________________________________________________