getDomain
Learn how to get the domain of the cookies.
This method provides the domain of the cookies.
Signature
This method has the following signature:
public function getDomain(): ?stringThis method returns the cookie domain, or null to scope the cookies to the current host.
Example
Here is a basic example of how to use this method:
<?phpuse Croct\Plug\CookieConfiguration;
$configuration = new CookieConfiguration();$domain = $configuration->getDomain();