django-registration “remember me”

你离开我真会死。 提交于 2019-12-03 07:25:28

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!