Class: Session

XT. Session

new Session()

Source:

Methods

addRelevantPrivileges(module, privArray)

Each extension has a set of privileges that it cares about. The extension will load those privileges here into the session object with then name of the module that the privilege should be associated with. The module name will frequently be the extension name, but some extensions do not have their own modules.
Parameters:
Name Type Description
module String
privArray Array
Source:

loadSessionObjects(Types, Options)

Loads session objects for settings, preferences and privileges into local memory. Types `XT.session.SETTINGS` or `XT.session.PRIVILEGES` can be passed as bitwise operators. If no arguments are passed the default is `XT.session.ALL` which will load all session objects.
Parameters:
Name Type Description
Types Number
Options Object
Source: