0

我正在开发一个基于 IBM worklight 的移动应用程序项目。我正在使用基于 Worklight 单步表单身份验证的登录模块来验证用户并在服务器上创建用户会话。现在需要的是保持用户会话处于活动状态,直到用户从应用程序中注销,无论应用程序在后台还是前台运行。

我阅读了有关服务器调优的工作灯文档,但是可以通过设置心跳间隔和服务器会话超时来保持所述用户会话处于活动状态。当应用程序在前台运行但当应用程序进入后台心跳停止并且用户会话在指定的服务器会话超时后失效时,这工作正常。那么有什么方法可以使服务器会话超时不受限制。任何帮助将不胜感激。

我正在使用 IBM Worklight 6.0 和 WebSpere Application server V8.5 并为 iPad/iphone 设备构建应用程序。

4

1 回答 1

0

From here: Optimization and tuning of Worklight Server, you should be able to modify the serverSessionTimeout property to get closer to the behavior you want.

Make sure that you really want to do it, the Worklight team has a nice explanation on why the heartBeat stops sending when the app is in the background:

"For example, suppose every minute 1,000 users start a session against the server. Even if they exit the application after 3 minutes, their sessions remain active on the server for 10 minutes, leaving 10 x 1,000 = 10,000 active sessions."

于 2013-08-16T17:18:24.403 回答