Пример #1
0
 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]
Пример #2
0
 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")]