Submodule box.session
The box.session submodule allows querying the session state, writing
to a session-specific temporary Lua table, or sending out-of-band
messages, or setting up triggers which will fire when a session starts
or ends.
A session is an object associated with each client connection.
Below is a list of all box.session functions and members.
Name | Use |
|---|---|
Get the current session's ID | |
Check if a session exists | |
Get the session peer's host address and port | |
Get the sync integer constant | |
Get the current user's name | |
Get the current effective user's name | |
Get the connection type or cause of action | |
Change the current user | |
Get the current user's ID | |
Get the current effective user's ID | |
Table with session-specific names and values | |
Define a connect trigger | |
Define a disconnect trigger | |
Define an authentication trigger | |
Define a trigger to report restricted actions | |
(Deprecated) Send an out-of-band message |