Skip to content

Commit

Permalink
avoid auto logout on localhost (#847)
Browse files Browse the repository at this point in the history
when running both newsroom and superdesk. both were using same
default session cookie name and one would override the other.
  • Loading branch information
petrjasek committed Mar 20, 2024
1 parent 6698ac2 commit ad3ac38
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions newsroom/web/default_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,9 @@
{"match": {"source": "PMF"}},
]

# avoid conflict with superdesk
SESSION_COOKIE_NAME = "newsroom_session"

# the lifetime of a permanent session in seconds
PERMANENT_SESSION_LIFETIME = 604800 # 7 days

Expand Down

0 comments on commit ad3ac38

Please sign in to comment.