Cookie.domainMatches

Checks if the @cookie's domain and @host match in the sense that @cookie should be sent when making a request to @host, or that @cookie should be accepted when receiving a response from @host.

class Cookie
bool
domainMatches
(
string host
)

Parameters

host string

a URI

Return Value

Type: bool

%TRUE if the domains match, %FALSE otherwise

Meta

Since

2.30