SessionStorage class | QSYS API Reference Guide
Estimated reading time: 2 minutes
Defines the SessionStorage class
Namespace: ASNA.QSys.Expo.Model Assembly: ASNA.QSys.Expo.Model.dll
Inheritance: Object
Remarks
The SessionStorage
is a class that is used to provide state
to a stateless environment such as the Internet Web.
IBM i Applications were designed with the Traditional Three-Tier client-server Application Architecture. This architecture is stateful.
The SessionStorage
is the class that provides the runtime functionality to bridge the traditional Application architecture into the modern Web model.
Constructors
Name | Description |
---|---|
SessionStorage(ISession) | Initializes a new instance of SessionStorage class |
SessionStorage(ISession)
Initializes a new instance of SessionStorage class
SessionStorage(ISession)
Parameters
Type | Parameter name | Description |
---|---|---|
ISession | Session | A reference to the session. |
Properties
Type | Name | Description |
---|---|---|
String | AreaList | Gets or sets the names of the Areas from/to the Session |
String | MessageFilesFolder | Gets or sets the name of the MessageFiles folder from/to the Session |
String | MonaLisaHost | Gets or sets the Monalisa Host Name from/to the Session |
Int32 | MonaLisaPort | Gets or sets the Monalisa IP Port number from/to the Session |
String | SingleFakeSession | Gets or sets the Single JobSession for running in Fake Mode |
Int32 | SingleJobNumber | Gets or sets the job number for sites running in Single Job configuration. |
Methods
Signature | Description |
---|---|
GetSessionString(String) | Gets a string from a key on the Session |
SetSessionString(String, String) | Sets a string value to a key in the Session |
string GetSessionString(string key)
Gets a string from a key on the Session
string GetSessionString(string key)
Parameters
Type | Parameter name | Description |
---|---|---|
String | key | session key |
Returns
Type | Description |
---|---|
String | stored string value |
void SetSessionString(string key, string value)
Sets a string value to a key in the Session
void SetSessionString(string key, string value)
Parameters
Type | Parameter name | Description |
---|---|---|
String | key | session key |
String | value | string value |