Tobias Dacoir
2015-01-23 09:43:40 UTC
I'm using django-allauth and I receive a signal when a user logs in. Now I
want to store each day the user logs in. However, when the user does not
logout he can still log in the next day thanks to the cookies. I know that
I can set SESSION_EXPIRE_AT_BROWSER_CLOSE to True in settings.py. But this
may annoy some Users.
So is there a way to use cookies but still tell if a User has accessed the
site for the first time today?
want to store each day the user logs in. However, when the user does not
logout he can still log in the next day thanks to the cookies. I know that
I can set SESSION_EXPIRE_AT_BROWSER_CLOSE to True in settings.py. But this
may annoy some Users.
So is there a way to use cookies but still tell if a User has accessed the
site for the first time today?
--
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+***@googlegroups.com.
To post to this group, send email to django-***@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/0acff60c-f658-4f2a-8318-47e08a6ffe98%40googlegroups.com.
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+***@googlegroups.com.
To post to this group, send email to django-***@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/0acff60c-f658-4f2a-8318-47e08a6ffe98%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.