[Answered ]-Can I prevent Django user login sessions from expiring?

1👍

The only way to extend session life is through longer-lived cookies. Every other method of user identification (e.g. IP + user-agent) suffers from ambiguity and, therefore, has security issues.

1👍

I created a simple middleware that updates user session cookies periodically, which eliminates the described problem.

https://github.com/IlyaSemenov/django-everlasting-sessions

Leave a comment