0
votes

I am working on a mobile application project based on IBM worklight. I am using Worklight Single step form based authentication for log in module to validate user and create user session on server. Now what is need is to keep user session active until user log out from the app regardless application run in background or foreground.

I read worklight documentation for server tuning, but that stated user session can be keep active by setting heart beat interval and server session timeout. That is working fine when app run in foreground but when app goes to background heart beat stops and user session get invalidated after specified server session time out . So is there any way to make server session timeout unlimited.Any help will be appreciated.

I am using IBM Worklight 6.0 and WebSpere Application server V8.5 and building app for iPad/iphone devices.

1

1 Answers

0
votes

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."