BBjHttpResponse::addCookie (Deprecated)
BBjHttpResponse::addCookie is deprecated for BBj 21.00 and higher, and has been replaced by BBxServletResponse::createCookie.
Description
In BBj 12.00 and higher, this method returns a new BBjCookie object with the name set.
Syntax
Return Value |
Method |
addCookie(string name) |
Parameters
Parameter |
Description |
name |
Specifies the name of the cookie. |
Return Value
A new BBjCookie object with the name set.
Remarks
The example below shows how to add a new cookie through the BBjHttpResponse object. Note that you must execute the cookie's BBjCookie::setValue(String) and BBjCookie::setMaxAge(int) methods in order to successfully create the cookie.
Example
|