'Session ID: ' || session:id()
};
</pre>
|}
==session:attribute-names==
{| width='100%'
|-
| width='90' | '''Signatures'''
|{{Func|session:attribute-names|$key as xs:string|xs:string*}}
|-
| '''Summary'''
|Returns the names of all attributes bound to the current session.
|-
| '''Examples'''
|Running the server-side XQuery file {{Code|attributes.xq}} via <code><nowiki>http://localhost:8984/attributes.xq</nowiki></code>:
<pre class="brush:xquery">
import module namespace session = "http://basex.org/modules/session";
session:attributes() ! element attribute { . }
</pre>
|}