Within an HTTP cookie, you can store a single custom
pair, such as
name=value.
Other custom names within a cookie are as follows.
sessionid=value
- Domain
-
Normally set to the domain from where the cookie was issued. To work with multiple subdomains, the
Domainshould be set to a URL likeDomain=example.net. This is also known as the cookie domain, as defined in the Configuration Reference chapter of the Reference document. A cookie domain set toexample.netwill work for subdomains such asapp1.example.netandservice1.example.net. - Path
-
The directory in the URL to which the cookie applies. If the
Path=/openam, the cookie applies to the/openamsubdirectory of the FQDN, and lower level directories, includingopenam/UIandopenam/UI/Login. - Secure
-
If the
Securename is included, the cookie can be transferred only over HTTPS. When a request is made over HTTP, the cookie is not made available to the application. - HttpOnly
-
When the
HttpOnlyname is included, that cookie will not be accessible through JavaScript. According to RFC 6265, the noted flag "instructs the user agent to omit the cookie when providing access to cookies via 'non-HTTP' APIs (such as a web browser API that exposes cookies to scripts)." - Expires
-
The lifetime of a cookie can be limited, with an
Expiresname configured with a time, based on UTC (GMT).
![]() |
Note |
|---|---|
|
Be careful. Do not take a shortcut with a top-level domain. Web browser clients today are designed to
ignore cookies set to top-level domains including |

![[Note]](common/images/admon/note.png)
