CookieHandler::SetDomain()


Definition

Sets the domain/subdomain valid for the current cookie, if it should be different from the one set in the constructor.
If no parameter is given or the domain 'localhost' is used (forbidden), the current domain is set.

void SetDomain ( [$Domain = ''] )

Parameters

Example

$Cookie = new CookieHandler("Testcookie");
$Cookie->SetDomain("example.com");