As a user moves from one Web page to another, you need to keep track of what the user has done on the previous page and make data available for what the user is able to do on the next page—maintaining the application state. In desktop Web applications, this is usually accomplished by storing values in cookies.
In the M-Business Anywhere environment, cookies are stored on M-Business Server, which uses them in communicating with your channel's Web server. These cookies are not available on the device and so cannot be used to maintain the application state. In place of cookies, several other methods are available for this purpose:
Using the PODSPrefs object to store values in the PODSPrefs
object in device memory, where it is automatically cleared when the session terminates.
Using on-device data to maintain the application state to store values in on-device data, which your code must initialize at the start of each session.
Using the PODSPrefs object
Using on-device data to maintain the application state
Send feedback about this page using email. | Copyright © 2008, iAnywhere Solutions, Inc. |