fix: 修复用户下线失败问题 SESSION_EXPIRE_AT_BROWSER_CLOSE 可配置 (#12936)

Co-authored-by: feng <1304903146@qq.com>
This commit is contained in:
fit2bot
2024-04-03 16:41:37 +08:00
committed by GitHub
parent d78d55091c
commit 611d0b71e8
5 changed files with 15 additions and 10 deletions

View File

@@ -196,6 +196,10 @@ class SecuritySessionSerializer(serializers.Serializer):
label=_('Connection max idle time (minute)'),
help_text=_('If idle time more than it, disconnect connection.')
)
SESSION_EXPIRE_AT_BROWSER_CLOSE = serializers.BooleanField(
required=False, default=False, label=_('Session expire at browser closed'),
help_text=_('Whether to expire the session when the user closes their browser.')
)
SECURITY_MAX_SESSION_TIME = serializers.IntegerField(
min_value=1, max_value=99999, required=False,
label=_('Session max connection time (hour)'),