Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

django delete session

def logout(request):
    try:
        del request.session['member_id']
    except KeyError:
        pass
    return HttpResponse("You're logged out.")
Source by docs.djangoproject.com #
 
PREVIOUS NEXT
Tagged: #django #delete #session
ADD COMMENT
Topic
Name
5+7 =