def invalidate_session_app(environ, start_response): session = environ['beaker.session'] session.invalidate() session.save() start_response('200 OK', [('Content-type', 'text/plain')]) return ['Cookie is %s' % session]
def invalidate_session_app(environ, start_response): session = environ["beaker.session"] session.invalidate() session.save() start_response("200 OK", [("Content-type", "text/plain")]) return [("Cookie is %s" % session).encode("UTF-8")]