Ticket #27328: session.diff

File session.diff, 1.2 KB (added by Ramin Farajpour Cami, 8 years ago)
  • AUTHORS

    diff --git a/AUTHORS b/AUTHORS
    index 26f0362..3ff9b51 100644
    a b answer newbie questions, and generally made Django that much better:  
    622622    Rajesh Dhawan <rajesh.dhawan@gmail.com>
    623623    Ramez Ashraf <ramezashraf@gmail.com>
    624624    Ramiro Morales <ramiro@rmorales.net>
     625       Ramin Farajpour Cami <ramin.blackhat@gmail.com>
    625626    Ram Rachum <ram@rachum.com>
    626627    Randy Barlow <randy@electronsweatshop.com>
    627628    Raphaël Barrois <raphael.barrois@m4x.org>
  • django/contrib/sessions/middleware.py

    diff --git a/django/contrib/sessions/middleware.py b/django/contrib/sessions/middleware.py
    index 5aaff43..8ae30d9 100644
    a b class SessionMiddleware(MiddlewareMixin):  
    3434        else:
    3535            # First check if we need to delete this cookie.
    3636            # The session should be deleted only if the session is entirely empty
    37             if settings.SESSION_COOKIE_NAME in request.COOKIES and empty:
     37            if if request.COOKIES.get(settings.SESSION_COOKIE_NAME) and empty:
    3838                response.delete_cookie(
    3939                    settings.SESSION_COOKIE_NAME,
    4040                    path=settings.SESSION_COOKIE_PATH,
Back to Top