| '''Summary'''
|Returns the session ID of a servlet request.
|-
| '''Errors'''
|{{Error|not-found|#Errors}} No session is available for the current client.
|-
| '''Examples'''
| '''Summary'''
|Returns the creation time of a session.
|-
| '''Errors'''
|{{Error|not-found|#Errors}} No session is available for the current client.
|}
| '''Summary'''
|Returns the last access time of a session.
|-
| '''Errors'''
|{{Error|not-found|#Errors}} No session is available for the current client.
|}
|-
| '''Errors'''
|{{Error|set|#Errors}} The supplied value cannot be materialized.<br/>{{Error|not-found|#Errors}} No session is available for the current client.
|-
| '''Examples'''
=Changelog=
;Version 9.4
* Updated: Only create session if required.
;Version 9.3
* Updated: [[#session:get|session:get]]: Values that have no XQuery type will be returned as strings.
;Version 9.0
* Updated: error codes updated; errors now use the module namespace
;Version 8.0
* Updated: Allow sequences as session values.
This module was introduced with Version 7.5.