On 17/08/2018 10:44 PM, Web Architect wrote:
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.
What are the consequences of deleting all sessions and forcing a new
login for everyone?
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
<mailto:django-users+unsubscr...@googlegroups.com>.
To post to this group, send email to django-users@googlegroups.com
<mailto: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
<https://groups.google.com/d/msgid/django-users/57001ae7-1361-43ed-98e3-a9ec072444fe%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.
--
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/e396dbd3-8093-197c-17d6-882e757f73f4%40dewhirst.com.au.
For more options, visit https://groups.google.com/d/optout.