diff --git a/ssoauth/checks.py b/ssoauth/checks.py index 991d90c5e08026b39ab7e2db908507ac97213db4..d89ecf5feadd3ca7fc0a814212da5081e1b23226 100644 --- a/ssoauth/checks.py +++ b/ssoauth/checks.py @@ -113,6 +113,8 @@ def auth_urls_configured(app_configs, **kwargs): @register(Tags.security) def session_lifetime(app_configs, **kwargs): errors = list() + if conf.settings.SESSION_EXPIRE_AT_BROWSER_CLOSE: + return errors max_wanted = 60 * 60 # seconds if conf.settings.SESSION_COOKIE_AGE > max_wanted: errors.append(Error(