<xqdoc:name>set-current-user</xqdoc:name>
<xqdoc:signature>session:set-current-user($a as xs:string, $b as xs:string) xs:boolean?</xqdoc:signature>
-<xqdoc:comment>
<xqdoc:description>Change the user identity for the current HTTP session. Subsequent XQueries in the session will run with the new user identity.</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>