From 5f313310d428da7e17e8cc6a43694660e634ef58 Mon Sep 17 00:00:00 2001 From: Florent Daigniere Date: Mon, 20 Dec 2021 09:37:11 +0100 Subject: [PATCH] regenerate() shouldn't extend lifetime --- core/admin/mailu/utils.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/core/admin/mailu/utils.py b/core/admin/mailu/utils.py index 44a4ec7f..5103f87e 100644 --- a/core/admin/mailu/utils.py +++ b/core/admin/mailu/utils.py @@ -246,12 +246,8 @@ class MailuSession(CallbackDict, SessionMixin): def regenerate(self): """ generate new id for session to avoid `session fixation`. """ - self.delete() - self._sid = None - self._created = self.app.session_config.gen_created() - self.modified = True def delete(self): @@ -262,9 +258,7 @@ class MailuSession(CallbackDict, SessionMixin): def save(self): """ Save session to store. """ - set_cookie = False - # set uid from dict data if self._uid is None: self._uid = self.app.session_config.gen_uid(self.get('_user_id', ''))