getValue(); if ($value > self::MAX_LIFETIME) { throw new LocalizedException( __( 'The Admin session lifetime is invalid. ' . 'Set the lifetime to 31536000 seconds (one year) or shorter and try again.' ) ); } elseif ($value < self::MIN_LIFETIME) { throw new LocalizedException( __('The Admin session lifetime is invalid. Set the lifetime to 60 seconds or longer and try again.') ); } return parent::beforeSave(); } }