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

NameTypeDescription
cookieNameStringThe name of the cookie.
cookieValueStringThe cookie value.
domainStringOptional domain for the cookie.
pathStringOptional path for the cookie.
expiryintMax age for the cookie in seconds.

Returns

TypeDescription
cookieobject