- TIBCO BusinessEvents®
- Standard
- HTTP
- Servlet
- Response

# HTTP.Servlet.Response.getCookie()

## Signature

`Object getCookie(String cookieName, String cookieValue, String domain, String path, int expiry)`

## Domain

ACTION, CONDITION, BUI

## Description

Creates a cookie object to be set on the response.

## Parameters

Name | Type | Description
--- | --- | ---
`cookieName` | `String` | The name of the cookie.
`cookieValue` | `String` | The cookie value.
`domain` | `String` | Optional domain for the cookie.
`path` | `String` | Optional path for the cookie.
`expiry` | `int` | Max age for the cookie in seconds.

## Returns

Type | Description
--- | ---
`cookie` | object