使用MarkLogic中的xdmp:http函数进行会话管理?

时间:2019-03-24 22:54:23

标签: marklogic

在MarkLogic中,是否具有使用var colors = ['#3366CC','#DC3912','#FF9900','#109618','#990099','#3B3EAC','#0099C6','#DD4477','#66AA00','#B82E2E','#316395','#994499','#22AA99','#AAAA11','#6633CC','#E67300','#8B0707','#329262','#5574A6','#3B3EAC'] for (i=0;i<response.length;i++){ x=wellknown.parse(response[i].geom); map.data.addGeoJson(x); map.data.setStyle({ fillColor: colors[i], strokeWeight: 1 }) } 函数进行会话管理的本机支持或实用程序库?类似于Python xdmp:http会话对象或节点requests Cookie罐吗?

Python请求会话:http://docs.python-requests.org/en/master/user/advanced/#session-objects 节点请求Cookie罐:https://github.com/request/request#requestjar

1 个答案:

答案 0 :(得分:1)

您可以使用xdmp:set-session-field()和xdmp:get-session-field-names()来实现相同的目的