A RESTful browser for eXist Java-Based Function Modules


http://exist-db.org/xquery/xmldb
A module for database manipulation functions.

xmldb:login($collection-uri as xs:string, $user-id as xs:string?, $password as xs:string?) xs:boolean
Login the user, $user-id, and set it as the owner of the currently executing XQuery. It returns true if the authentication succeeds, false otherwise. If called from a HTTP context the login is cached for the lifetime of the HTTP session and may be used for any XQuery run in that session. If an HTTP session does not already exist, none will be created.
$collection-uriThe collection URI
$user-idThe user-id
$passwordThe password

Returns true() on successful authentication and owner elevation, false() otherwise

xmldb:login($collection-uri as xs:string, $user-id as xs:string?, $password as xs:string?, $create-session as xs:boolean?) xs:boolean
Login the user, $user-id, and set it as the owner of the currently executing XQuery. It returns true() if the authentication succeeds, false() otherwise. If called from a HTTP context the login is cached for the lifetime of the HTTP session and may be used for any XQueryrun in that session. $create-session specifies whether to create an HTTP session on successful authentication or not. If $create-session is false() or the empty sequence no session will be created if one does not already exist.
$collection-uriThe collection URI
$user-idThe user-id
$passwordThe password
$create-sessionwhether to create the session or not on successful authentication, default false()

Returns true() on successful authentication and owner elevation, false() otherwise
Return to list of all modules