I'm looking for a way to easily end a session after a period of inactivity, such as a flask configuration value. I was trying to use PERMANENT_SESSION_LIFETIME like so :

application.config['PERMANENT_SESSION_LIFETIME'] = datetime.timedelta(minutes=30)

However, jwt are being used in the current schema rather than cookies and from my understanding PERMANENT_SESSION_LIFETIME will work with cookies only. I'd also prefer a setup that was based on inactive time rather than session creation.

Let me know if I'm misunderstanding or have any advice.

closed as off-topic by Izzy Jan 9 at 21:52

This question appears to be off-topic. The users who voted to close gave this specific reason:

If this question can be reworded to fit the rules in the help center, please edit the question.