A module for dealing with the HTTP session.
Removes all attributes from the current HTTP session. Does NOT invalidate the session.
Initialize an HTTP session if not already present
Encodes the specified URL with the current HTTP session-id.
$url | The URL to encode |
Returns whether a session object exists.
Returns an attribute stored in the current session object or an empty sequence if the attribute cannot be found.
$name | The session attribute name |
Returns a sequence containing the names of all session attributes defined within the current HTTP session.
Returns the time when this session was created. If a session does not exist, a new one is created. If the session is already invalidated, it returns January 1, 1970 GMT
Returns the ID of the current session or an empty sequence if there is no session.
Returns the last time the client sent a request associated with this session. If a session does not exist, a new one is created. Actions that your application takes, such as getting or setting a value associated with the session, do not affect the access time. If the session is already invalidated, it returns January 1, 1970 GMT
Returns the maximum time interval, in seconds, that the servlet container will keep this session open between client accesses. After this interval, the servlet container will invalidate the session. The maximum time interval can be set with the session:set-max-inactive-interval function. A negative time indicates the session should never timeout.
Invalidate (remove) the current HTTP session if present
Removes the attribute with the supplied name from the current session
$name | The attribute name |
Stores a value in the current session using the supplied attribute name. If no session exists, then one will be created.
$name | The attribute name |
$value* | The value to be stored in the session by the attribute name |
Change the user identity for the current HTTP session. Subsequent XQueries in the session will run with the new user identity.
$user-name | The user name |
$password | The password |
Sets the maximum time interval, in seconds, that the servlet container will keep this session open between client accesses. After this interval, the servlet container will invalidate the session. A negative time indicates the session should never timeout.
$interval | The maximum inactive interval (in seconds) before closing the session |