SessionTrait
trait SessionTrait
This is a trait convienence methods to access the session from the launch object
Methods
Get a key from the session
Set a key in the session
Forget a key in the session
Flush the session
Return the original $_POST array
Pull a keyed variable from the original LTI post data in the current session with default
Update a keyed variable from the original LTI post data in the current session with default
Pull a keyed variable from the original LTI post data in the current session with default
Pull out a custom variable from the LTIX session. Do not include the "custom_" prefix - this is automatic.
Details
at line 17
session_get($key, $default = null)
Get a key from the session
at line 24
session_put($key, $value)
Set a key in the session
at line 31
session_forget($key)
Forget a key in the session
at line 38
session_flush()
Flush the session
at line 45
ltiRawPostArray()
Return the original $_POST array
at line 53
ltiParameter($varname, $default = false)
Pull a keyed variable from the original LTI post data in the current session with default
at line 61
ltiParameterUpdate($varname, $value)
Update a keyed variable from the original LTI post data in the current session with default
at line 70
ltiRawParameter($varname, $default = false)
Pull a keyed variable from the original LTI post data in the current session with default
at line 79
ltiCustomGet($varname, $default = false)
Pull out a custom variable from the LTIX session. Do not include the "custom_" prefix - this is automatic.