<?xml version="1.0" encoding="UTF-8"?><api:function-page xml:base="/apidoc/8.0/xdmp.logout.xml" generated="2015-10-07T16:36:00.016766-07:00" mode="javascript" xmlns:api="http://marklogic.com/rundmc/api"><api:function-name>xdmp.logout</api:function-name><api:suggest>xdmp.logout</api:suggest><api:suggest>xdmp</api:suggest><api:suggest>logout</api:suggest><api:function-link mode="xquery" fullname="xdmp:logout">/apidoc/8.0/xdmp:logout.xml</api:function-link><api:function mode="javascript" name="logout" type="builtin" lib="xdmp" category="AppServerBuiltins" hidden="false" bucket="MarkLogic Built-In Functions" prefix="xdmp" namespace="http://marklogic.com/xdmp" fullname="xdmp.logout"><api:summary>
  Logs the current user out of the session on the server.
  The result is that the current user is set to the default user defined in
  application-level authentication.  The session remains on the server
  until it expires.
</api:summary><api:params/><api:return>null</api:return><api:example class="javascript"><pre xml:space="preserve" xmlns="http://www.w3.org/1999/xhtml">
xdmp.logout()
=&gt; ()
</pre></api:example></api:function></api:function-page>