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
- Clear session data on login and logout by jb0t 5 years, 1 month ago
- RefreshSessionMiddleware by jcassee 4 years, 9 months ago
- Clean spam from comments by running management command and akismet by iElectric 7 months ago
- Debug middleware for displaying sql queries and template loading info when ?debug=true by SEJeff 2 years, 1 month ago
- SelectRelatedManager by realmac 1 year, 8 months ago
Comments
where to write this function?
#