Contents
An HTTP cookie is data sent by a server in an HTTP response to a client. The client can then return an updated cookie value in subsequent requests to the server. For example, this enables the server to store user preferences, manage sessions, track browsing habits, and so on.
The Create Cookie filter is used to create a Set-Cookie
header
or a Cookie
header. The Set-Cookie
header is used when the server
instructs the client to store a cookie. The Cookie
header is used when a client
sends a cookie to a server. This filter adds the appropriate HTTP cookie header to the message
header, and saves the cookie as a message attribute.
For more details, see the topic on the Get cookie filter.
Configure the following fields on the Create Cookie Filter Configuration screen:
Filter Name:
Enter an appropriate name to display for this filter.
HTTP Header Type:
Select the HTTP cookie header type that you wish to create: Set-Cookie (Server) or Cookie (Client). When this is set to Set-Cookie (Server), all attributes from the Cookie Details list are used. When this is set to Cookie (Client), only the Cookie Value attribute is used.
Cookie Details
You can configure the following settings for the cookie:
Setting | Description |
---|---|
Cookie Name | The name of the cookie. |
Cookie Value | The value of the cookie. |
Domain | The domain name for this cookie. |
Path | The path on the server to which the browser returns this cookie. |
Max age | The maximum age of the cookie in days, hours, minutes, and/or seconds. |
Secure | Whether sending this cookie is restricted to a secure protocol. This setting is not selected by default, which means that it can be sent using any protocol. |
HTTPOnly | Whether the browser should use cookies over HTTP only. This setting is not selected by default. |