Hi, We are using persistent django sessions for our website where in the session information is stored in MySQL. Over last couple of years, the session data has grown to a huge number and we were planning to clean it up. I know that there is a django management command 'clearsessions' and we are using the same as a daily cronjob. But our challenge is we have long expiry timelines of like 100 years so that our users are never logged out (unless they clear their cookies etc). Hence, the clearsessions won't help.
The solution we are looking for are removing the sessions which are never used for a long period. Let's say a user never came to our site for 3 months after last logging in. We would like to purge those sessions. Would really appreciate if anyone could suggest any such solution - be it in Django or if we need to custom build it. Thanks. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/57001ae7-1361-43ed-98e3-a9ec072444fe%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.