This is the class expSession
package |
Subsystems |
---|---|
subpackage |
Subsystems |
clearAllSessionData()
clearAllUsersSessionCache(mixed $modules = null, \User $user = null)
node |
Subsystems:Sessions |
---|---|
mixed
If not set, applies to all modules. If set, will only clear cache for that module
\User
if not set,applies to all users. If set, will only clear for that user
createTicket(\user/object $user = null) : null
node |
Subsystems:Sessions |
---|
\user/object
The user object of the newly logged-in user. Uses id of 0 if not supplied.
null
deleteVar( $var)
exists( $var)
get(string $var) : mixed
Note that some session variables (like the user object and the ticket) cannot be changed using this call (for security / sanity reason)
node |
Subsystems:Sessions |
---|
string
The name of the variable to retrieve.
mixed
getCacheValue( $module)
getTableCache( $tablename)
getTicketString()
initialize()
This sends the session cookie header (via the session_start PHP function) and sets up session variables needed by the rest of the system and this subsystem.
node |
Subsystems:Sessions |
---|---|
is_set( $var) : boolean
Note that some session variables (like the user object and the ticket) cannot be changed using this call (for security / sanity reason)
node |
Subsystems:Sessions |
---|
boolean
issetTableCache( $tablename)
loggedIn() : boolean
node |
Subsystems:Sessions |
---|---|
boolean
login(\User $user)
node |
Subsystems:Sessions |
---|---|
\User
The user object of the newly logged-in user.
logout()
This gets rid of stale session tickets, and resets the session to a blank state.
node |
Subsystems:Sessions |
---|---|
set(string $var, mixed $val)
Note that some session variables (like the user object and the ticket) cannot be changed using this call (for security / sanity reason)
node |
Subsystems:Sessions |
---|---|
string
The name of the variable, for later reference
mixed
The value to store
setCache( $params = array())
setCacheValue( $module, $val)
setTableCache( $tablename, $desc)
triggerRefresh()
node |
Subsystems:expPermissions |
---|---|
triggerSingleRefresh(\user/object $user)
node |
Subsystems:expPermissions |
---|---|
\user/object
un_set(string $var)
Note that some session variables (like the user object and the ticket) cannot be changed using this call (for security / sanity reason)
node |
Subsystems:Sessions |
---|---|
string
The name of the variable to unset.
updateTicket( $ticket, $user) : mixed
node |
Subsystems:Sessions |
---|
mixed
validate()
node |
Subsystems:Sessions |
---|---|