getSameSite

Learn how to get the SameSite policy applied to the cookies.

This method provides the SameSite policy applied to the cookies.

Signature

This method has the following signature:

public function getSameSite(): string

This method returns the SameSite policy applied to the cookies.

Example

Here is a basic example of how to use this method:

<?phpuse Croct\Plug\CookieConfiguration;
$configuration = new CookieConfiguration();$sameSite = $configuration->getSameSite();