Loading TOC...

MarkLogic 10 Product Documentation
xdmp.getSessionFieldNames

xdmp.getSessionFieldNames() as Sequence

Summary

Returns a sequence of the HTTP session field names from the session created by the xdmp.login function.

Required Privileges

http://marklogic.com/xdmp/privileges/xdmp-get-session-field-names

Usage Notes

You can use the xdmp.setSessionField function to set a named value in a session and the xdmp.getSessionField function to return a value set in a session field.

Example

xdmp.getSessionFieldNames();
=> ["user", "role", "action", "index"]

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.