XQuery Function Documentation

http://exist-db.org/xquery/session

java:org.exist.xquery.functions.session.SessionModule

A module for dealing with the HTTP session.

session:set-current-user#2

session:set-current-user($user-name as xs:string, $password as xs:string) as xs:boolean

Change the user identity for the current HTTP session. Subsequent XQueries in the session will run with the new user identity.

Parameters:
$user-nameThe user name
$passwordThe password
Returns:
xs:boolean : true if the user name and password represent a valid user