Session for the Request

Hierarchy

  • SessionWrapper

Constructors

Properties

Accessors

Methods

Constructors

Properties

attributes: Map<any, any>

Map of Session attributes.

Example

Here's some example code to add Session attribute:

var requestObj = voltMX.getRequestObject();
requestObj.getSession().attributes['Session1']='S1Val';
requestObj.update();
cookies: Map<any, any>

Map of Session cookies.

Example

Here's some example code to add Session cookie:

var requestObj = voltMX.getRequestObject();
requestObj.getSession().cookies['Cookie1']='C1Val';
requestObj.update();

Accessors

  • get getAttributes(): Map<any, any>
  • Gets or set the attributes of the Session

    Returns Map<any, any>

  • get getCookies(): Map<any, any>
  • Gets or set the cookies of the Session

    Returns Map<any, any>

Methods

  • Update Session.

    Example

    Here's some example code to update Session:

    var requestObj = voltMX.getRequestObject();
    requestObj.getSession().attributes['Session1']='S1Val';
    requestObj.getSession().update();

    Returns void

Generated using TypeDoc