Ticket #2368: logout.diff
File logout.diff, 657 bytes (added by , 18 years ago) |
---|
-
django/contrib/auth/__init__.py
56 56 """ 57 57 Remove the authenticated user's ID from the request. 58 58 """ 59 del request.session[SESSION_KEY] 60 del request.session[BACKEND_SESSION_KEY] 59 try: 60 del request.session[SESSION_KEY] 61 except KeyError: 62 pass 63 try: 64 del request.session[BACKEND_SESSION_KEY] 65 except KeyError: 66 pass 61 67 62 68 def get_user(request): 63 69 from django.contrib.auth.models import AnonymousUser