Constructor of SessionContext, init session and set session file path
void CleanObj(
string
$objName, [boolean
$stateful = false]
)
|
|
Clean Obbject
Parameters:
|
string |
$objName: |
object name |
|
boolean |
$stateful: |
|
API Tags:
void ClearSessionObjects(
[mixed
$keepObjects = false]
)
|
|
Clear session variables of all stateful objects
API Tags:
void ClearVar(
string
$varName
)
|
|
Clear/Unset single session variable
Parameters:
API Tags:
Destroy/free all session data of the current session
API Tags:
void GetObjVar(
string
$objName, string
$varName, mixed
&$value, [mixed
$stateful = false]
)
|
|
Get single session variable of a stateful object
Parameters:
|
string |
$objName: |
- object name |
|
string |
$varName: |
- vaiable name |
|
mixed |
$value: |
- reference of the value (in/out) |
API Tags:
string GetVar(
string
$varName
)
|
|
Get single session variable
Parameters:
API Tags:
array GetViewHistory(
string
$formName
)
|
|
Get view history data of given bizform from saved in session file
Parameters:
|
string |
$formName: |
- name of bizform |
API Tags:
| Return: | - view history data represented by an associated array |
| Access: | public |
SessionContext::IsTimeout - check if current session is timeout
API Tags:
Check if user logged in or not
API Tags:
void RetrieveSessionObjects(
)
|
|
Retrieve/Get session variables of all stateful objects from sessionid_obj file
API Tags:
void SaveJSONArray(
string
$jsonValue, [string
$jsonName = NULL]
)
|
|
Save a JSON array in session
Parameters:
|
string |
$jsonValue: |
|
|
string |
$jsonName: |
|
API Tags:
void SaveSessionObjects(
)
|
|
Save session variables of all stateful objects into sessionid_obj file
API Tags:
void SetObjVar(
string
$objName, string
$varName, mixed
&$value, [mixed
$stateful = false]
)
|
|
Set single session variable of a stateful object
Parameters:
|
string |
$objName: |
- object name |
|
string |
$varName: |
- vaiable name |
|
mixed |
$value: |
- reference of the value (in/out) |
API Tags:
void SetVar(
string
$varName, mixed
$value
)
|
|
Set single session variable
Parameters:
|
string |
$varName: |
|
|
mixed |
$value: |
|
API Tags:
void SetViewHistory(
string
$formName, array
$histInfo
)
|
|
Set view history data of given bizform into session file
Parameters:
|
string |
$formName: |
- name of bizform |
|
array |
$histInfo: |
- view history data represented by an associated array |
API Tags:
boolean VarExists(
string
$varName
)
|
|
Is variable exist in the session
Parameters:
|
string |
$varName: |
variable name that checked |
API Tags:
| Return: | TRUE if the var exists in the session, otherwise FALSE |
| Access: | public |