
BBjCookie::setDomain
Description
In BBj 12.0 and higher, this method sets the domain within which this cookie should be presented.
The form of the domain name is specified by RFC 2109. A domain name begins with a dot (.foo.com) and means that the cookie is visible to servers in a specified Domain Name System (DNS) zone (for example, www.foo.com, but not a.b.foo.com). By default, cookies are only returned to the server that sent them.
Syntax
Return Value |
Method |
void |
setDomain(string domain) |
Parameters
Variable |
Description |
domain |
a String containing the domain name within which this cookie is visible; form is according to RFC 2109 |
Return Value
None.
Remarks
The example below shows setting the domain in a BBjCookie of a within a BBjServlet
Example
|