Reputation: 23
Can anyone know how to set session timeout per user in Django? I'm building a system where I need to set a user timeout session, if a user is failed to perform any action till a timeout setting then he will be logout of the system. Is this possible in Django?
Upvotes: 2
Views: 406
Reputation: 146
Yes, there is a way. You can use request.session.set_expiry(<VALUE>)
in your login view to dynamically set session expiry based on some rule
Upvotes: 2