mirror of
https://github.com/optim-enterprises-bv/Mailu.git
synced 2025-12-27 18:25:13 +00:00
1791: Enhanced session handling r=mergify[bot] a=ghostwheel42 ## What type of PR? bug-fix ## What does this PR do? - replaces flask_kvsession and simplekv with a mailu-specific session store - call cleanup_sessions before first request and not on startup. this allows to run cmdline actions without redis (and makes it faster) - allow running without redis for debugging purposes by setting MEMORY_SESSIONS to True - don't sign session id, as it has plenty of entropy (as suggested by nextgens) - adds method to prune a user's sessions ### Related issue(s) - enhances and close #1787 Co-authored-by: Alexander Graf <ghostwheel42@users.noreply.github.com>