Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Session timeout not working
#6
I'm not sure what your situation is, but I'll quickly outline setting the values for form KeeplAlive and timeout:

1. Set the Session Timeout to whatever value you want. I believe default is 1 or 5 minutes (I don't remember, I explicitly set it). If there is no response from a form after that time, the session is flagged for destruction. The session technically still exists until IW does a scheduled cleanup and removes sessions that are "shut down". In your case, I think you want this set to 1 minute based on your comment.

2. IWForm.KeepAlive (NOT the IP Keepalive... this is on the IwFORM), set to true and it will automatically ping the server when that form is displayed, regardless of what the user is doing. This will keep the session from timing out. It will ping 3 or 4 times during the timeout period (that is, ping frequency is set by timeout). All of that is automatic.

With that setup, if a form is showing with KeepAlive set to true then the session will never time out. If you kill that browser window (form is shut down), the session will time out in based on the setting.

Exception: Some browsers (ex: Safari on iPhone) deactivate a form when it is not showing, even if the form is not closed. So, the session may time out if you bring up another app or even browser window. On a desktop, if the browser window exists it will continue to stay alive.

It shouldn't matter in this situation, but it is helpful if you can state your IW version and Delphi version along with the settings you have tried and the behavior you have seen.

Dan
Reply


Messages In This Thread
RE: Session timeout not working - by kudzu - 05-15-2020, 05:01 PM
RE: Session timeout not working - by newuser - 05-18-2020, 09:39 PM
RE: Session timeout not working - by kudzu - 05-22-2020, 06:08 PM
RE: Session timeout not working - by DanBarclay - 05-22-2020, 06:54 PM
RE: Session timeout not working - by newuser - 05-23-2020, 08:29 AM
RE: Session timeout not working - by kudzu - 05-23-2020, 07:09 PM
RE: Session timeout not working - by newuser - 05-24-2020, 09:52 AM
RE: Session timeout not working - by kudzu - 05-24-2020, 06:11 PM
RE: Session timeout not working - by DanBarclay - 05-24-2020, 09:47 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)