getClientIdDuration

Learn how to get the lifetime of the client ID cookie.

This method provides the lifetime of the client ID cookie, in seconds.

Signature

This method has the following signature:

public function getClientIdDuration(): int

This method returns the lifetime of the client ID cookie, in seconds.

Example

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

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