Skip to content

Commit

Permalink
Comment __init__ for readability
Browse files Browse the repository at this point in the history
  • Loading branch information
Lxstr committed Jan 15, 2024
1 parent 191aa27 commit 252ab91
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/flask_session/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,18 @@ def init_app(self, app):

def _get_interface(self, app):
config = app.config.copy()

# Flask-session specific settings
config.setdefault("SESSION_TYPE", "null")
config.setdefault("SESSION_PERMANENT", True)
config.setdefault("SESSION_USE_SIGNER", False)
config.setdefault("SESSION_KEY_PREFIX", "session:")
config.setdefault("SESSION_ID_LENGTH", 32)

# Redis settings
config.setdefault("SESSION_REDIS", None)

# Memcached settings
config.setdefault("SESSION_MEMCACHED", None)

# Filesystem settings
Expand Down

0 comments on commit 252ab91

Please sign in to comment.