libraries:cookiehandler:cookiehandlerclass:setdomain
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
- $Domain String (optional)
Domain valid for this cookie. If the parameter is empty or it's the forbidden domain 'localhost', it is changed to the current domain.
Example
$Cookie = new CookieHandler("Testcookie"); $Cookie->SetDomain("example.com");
libraries/cookiehandler/cookiehandlerclass/setdomain.txt · Last modified: 2022/12/13 16:32 by michael.pohl