|-
| width='120' | '''Signatures'''
|{{Func|session:get|$key as xs:string|item()?*}}<br/>{{Func|session:get|$key as xs:string, $default as item()*|item()*}}
|-
| '''Summary'''
|Returns the value of a variable bound to the current session. If the variable does not existkey is unknown, an empty sequence or the optionally specified default value is returned instead.
|-
| '''Errors'''
==session:set==
{{Mark|Updated with Version 8.0}}: allow sequences as session values
{| width='100%'
|-
| width='120' | '''Signatures'''
|{{Func|session:set|$key as xs:string, $value as item()*|empty-sequence()}}
|-
| '''Summary'''
|Assigns a Binds the specified key/value pair to a session variable.
|-
| '''Errors'''
=Changelog=
;Version 8.0
* Updated: allow sequences as session values
This module was introduced with Version 7.5.
[[Category:XQuery]]