Remember me for login

1
2
3
4
5
def login(request, *args, **kwargs):
    if request.method == 'POST':
        if not request.POST.get('remember_me', None):
            request.session.set_expiry(0)
    return auth_views.login(request, *args, **kwargs)

More like this

  1. Keep Me Logged In for Django by krvss 11 months, 3 weeks ago
  2. Clear session data on login and logout by jb0t 3 years, 10 months ago
  3. Require login by url by zbyte64 3 years, 6 months ago
  4. Using another memcached for sessions by dipankarsarkar 3 years, 2 months ago
  5. Test if sessions are working by jpic 1 year, 11 months ago

Comments

(Forgotten your password?)