Name
Set-Cookie
Synopsis
Set-Cookie:
name=value
[;
options
]
Description
Contains a name/value pair of information to retain for this URL. For browsers supporting Netscape persistent cookies; not included in the HTTP standard. See the discussion of cookies later in this chapter for more information. Options are:
-
expires
=date 2n The cookie becomes invalid after the specified date.
-
path
=pathname The URL range for which the cookie is valid.
-
domain
=domain_name The domain name range for which the cookie is valid.
-
secure
Return the cookie only under a secure connection.
Get Webmaster in a Nutshell, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.