getUserTokenDuration

Learn how to get the lifetime of the user token cookie.

This method provides the lifetime of the user token cookie, in seconds.

Signature

This method has the following signature:

public function getUserTokenDuration(): int

This method returns the lifetime of the user token cookie, in seconds.

Example

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

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