问题
I need to implement a "Remember me" button in a login form that uses the django-registration app. Any ane can help me showing me the way for do this?
Thanks
回答1:
One way to do it is to change the session expiration date. This snippet gives an example: http://www.djangosnippets.org/snippets/1881/
回答2:
Apparently, there's module for that:
http://code.google.com/p/django-remember-me/
I haven't used it but it came up during my search.
来源:https://stackoverflow.com/questions/2770370/django-registration-remember-me