def logout(request): try: del request.session['member_id'] except KeyError: pass return HttpResponse("You're logged out.")
del request.session['mykey']