Closed sodrian closed 8 years ago
Why did you close this? Is this solved for you? We do have the same problem. Could you share your solution?
@nuarhu How about this one: https://stackoverflow.com/questions/3044799/in-django-how-to-renew-expiry-date-for-current-session
If you set SESSION_SAVE_EVERY_REQUEST = True
, Django will automatically update the cookie expiry date
I've added this setting: SESSION_SAVE_EVERY_REQUEST = True
and that did the trick. Thanks for the quick answer and the link, it had the solution!
Hey!
I use django-redis-sessions for session backend, here is my configuration:
The problem here is that sessionid key in cookies does not update and lives precisely for 1 week and users have to relogin every week.
Is there a way for sessionid to autoupdate on every request from user?