Be the first to know! News, product information, and events delivered straight to your inbox.
Be the first to know! News, product information, and events delivered straight to your inbox.
Be the first to know! News, product information, and events delivered straight to your inbox.
Be the first to know! News, product information, and events delivered straight to your inbox.
Be the first to know! News, product information, and events delivered straight to your inbox.

xdmp:get-session-field( $name as xs:string, [$default as item()*] ) as item()*
Returns the value of a named session field from the session
created by the xdmp:login function.
| Parameters | |
|---|---|
| $name | The name of the session field. |
| $default | A default value to return if there is no session field. |
http://marklogic.com/xdmp/privileges/xdmp-get-session-field
xdmp:set-session-field function to
set a named value in a session and the xdmp:get-session-field-names
function to return the names of the fields in the session.
xdmp:get-session-field("user")
=> "marklogic"
Comments
The commenting feature on this page is enabled by a third party. Comments posted to this page are publicly visible.