通过会话ID在Flask中获取会话

时间:2017-11-02 11:42:49

标签: python flask

class MsgConnection(tornado.websocket.WebSocketHandler):
   def on_message(self,message):
      session_id = self.get_cookie('session')
      session = get_session_in_flask(session_id)

如何编码get_session_in_flask

1 个答案:

答案 0 :(得分:1)

each