def session_pop(self, request, key, default):
        return request.session.pop(key) if key in request.session else default
Return the value of a session key if exists and pop it; otherwise return default
dataset/ETHPy150Open Wtower/django-ninecms/ninecms/utils/render.py/NodeView.session_pop