If app.config["SESSION_REFRESH_EACH_REQUEST"] is True, the expiration of permanent sessions is not checked against the creation date stored inside the session id, but against the "t_expires" field saved with a session in the store.
I also had to add some logging during development and decided to keep it around because it proved quite useful.
If
app.config["SESSION_REFRESH_EACH_REQUEST"]
isTrue
, the expiration of permanent sessions is not checked against the creation date stored inside the session id, but against the "t_expires" field saved with a session in the store.I also had to add some logging during development and decided to keep it around because it proved quite useful.