Skip to content

Commit

Permalink
Merge branch 'main' into support/3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
dsuch committed Oct 21, 2023
2 parents 8d1b983 + 3d8065f commit 641fcab
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion code/zato-web-admin/src/zato/admin/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import logging
import logging.config
import os
import sys
from uuid import uuid4

# Zato
Expand Down Expand Up @@ -50,7 +51,9 @@
logging.basicConfig(level=logging.DEBUG)

# Session timeout
SESSION_COOKIE_AGE = 600 # In seconds = 10 minutes
_session_timeout_env_key = 'Zato_Dashboard_Session_Timeout'
_session_timeout_default = 600 # In seconds = 10 minutes
SESSION_COOKIE_AGE = os.environ.get(_session_timeout_env_key) or _session_timeout_default

MESSAGE_STORAGE = 'django.contrib.messages.storage.session.SessionStorage'

Expand Down

0 comments on commit 641fcab

Please sign in to comment.