Changes

Jump to navigation Jump to search
81 bytes added ,  13:29, 11 July 2019
no edit summary
* The module will be available if the {{Code|basex-api}} library is found in the classpath. This is the case if you use one of the complete distributions of BaseX (zip, exe, war).
* All functions and errors are assigned of the <code><nowiki>http://basex.org/modules/sessions</nowiki></code> namespace, which is statically bound to the {{Code|sessions}} prefix. The Prior to {{Version|9.2}}, the module must needed to be imported in the query prolog:
<pre class="brush:xquery">
import module namespace sessions = "http://basex.org/modules/sessions";
...
</pre>
* In this document, the namespace is bound to the {{Code|sessions}} prefix.
* If any of the functions is called outside the servlet context, <code>[[XQuery Errors#BaseX Errors|basex:http]]</code> is raised.
* If a specified session id is not found, <code>[[#Errors|not-found]]</code> is raised.
|-
| '''Summary'''
|Returns the names of all variables attributes bound to the session specified by {{Mono|$id}}.
|}
==sessions:get==
 
{{Mark|Updated with Version 9.3:}} Values that have no XQuery type will be returned as strings.
{| width='100%'
| '''Summary'''
|Returns the value of an attribute with the specified {{Code|$name}} from the session with the specified {{Mono|$id}}. If the attribute is unknown, an empty sequence or the optionally specified {{Code|$default}} value will be returned instead.
|-
| '''Errors'''
|{{Error|get|#Errors}} the value of an attribute could not be retrieved.
|}
! width="110"|Code
|Description
|-
|{{Code|get}}
|The stored attribute is no XQuery value.
|-
|{{Code|set}}
=Changelog=
 
;Version 9.3
 
* Updated: [[#sessions:get|sessions:get]]: Values that have no XQuery type will be returned as strings.
;Version 9.0
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu