Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

For more details, review the following:

4.3.1 Session Management Configuration

4.3.2 Session Key Method

4.3.3 The WEB_MAP *PERSIST Keyword

4.3.4 Session State Maintenance

4.3.5 The Mechanics of Session Management

4.3.6 WAM Session Properties

4.3.7 WAM Session Example

4.3.8 Session States

A WAM application has the facility to store session state on the server in a server independent way. To declare session state, it is necessary to set OPTIONS attribute of fields or lists to *PERSIST. Using *PERSIST ensures that whatever changes are made to those fields and lists, they are always accessible on the server once a WEBROUTINE is executed in the context of that session. Storing the actual session state in a database enables a multi-stream execution environment. Consequently, it is possible to setup and configure multiple application servers, on separate boxes, for greater scalability. Individual WEBROUTINE requests could be shared amongst all available servers. When a request is made, the session state (i.e. all the fields and lists marked OPTIONS(*PERSIST)) is reloaded from a single database into server memory before WEBROUTINE RDMLX is executed. The session state is unloaded when the WEBROUTINE exits.