Django “Remember Me” with built-in login view and authentication form
How can I reuse the original admin login() and AuthenticationForm to set longer cookie length for users with "remember me" option checked at login page? I am currently using the built-in login through urls.py url(r'^login/$','django.contrib.auth.views.login', {'template_name': 'authentication/login.html'}, name='login'), The checkbox is implemented in my login.html as: <label><input name="remember_me" type="checkbox">Keep me logged in</label> but I am not sure how to pass that information through the AuthenticationForm to the django.contrib.auth.views.login Currently, if the user logs