Name

Set-Cookie: name=value options

Synopsis

Contains a name/value pair of information to retain for this URL. For browsers supporting cookies. For example:

Set-Cookie: acct=03845324

Options are:

Option

Meaning

expires = date

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 HTTP Pocket Reference 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.