private static function CleanerSessionController::getExpirationTime in Cleaner 8
Get the sessions expiration time.
Return value
int Expiration timestamp.
File
- src/
Controller/ CleanerSessionController.php, line 42
Class
- CleanerSessionController
- Class CleanerSessionController.
Namespace
Drupal\cleaner\ControllerCode
private static function getExpirationTime() {
return (int) (REQUEST_TIME - session_get_cookie_params()['lifetime']);
}