serverSessionTimeout无法运行IBM

serverSessionTimeout无法运行IBM

本文介绍了serverSessionTimeout无法运行IBM Worklight的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在worklight属性文件中添加了serverSessionTimeout = 3,我已经在WAS服务器中编辑了这个并重新启动了应用程序,但是当我测试应用程序并使其闲置3分钟时,我无法看到服务器会话时间自动退出,是否需要在移动客户端上调用以检查服务器会话超时是否完成。请帮助

I have added the serverSessionTimeout=3 in the worklight properties file, I have edited this in the WAS server and restarted the application, but when i test the app and keep it idle for 3 mins, i cant see the server session time out automatically, is there anything we need to call on the mobile client to check if the server session time out is done or not. please help

谢谢
djrecker

Thanksdjrecker

推荐答案

你可以尝试禁用心跳使用

You could try disabling the heartbeat using

WL.Client.setHeartBeatInterval(-1)

WL.Client.setHeartBeatInterval(-1)

可能在初始化过程中app

Maybe during the initialization of your app

文档位于:

随着会话超时也可以在前台使用应用程序。

With that the session timeout may work with the app in foreground too.

这篇关于serverSessionTimeout无法运行IBM Worklight的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-19 18:02