def _reset_session(): data = request.args sid = data.get('session') if session_manager.has_session(sid): session_manager.reset_session(sid) ret, response = True, "Session reset" else: ret, response = False, "No such session" return Response(json_encode({ 'ret': ret, 'response': response }), mimetype="application/json")
def _reset_session(): data = request.args sid = data.get('session') if session_manager.has_session(sid): session_manager.reset_session(sid) ret, response = True, "Session reset" else: ret, response = False, "No such session" return Response(json_encode({ 'ret': ret, 'response': response }), mimetype="application/json")