Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Active sessions problem
#11
(06-20-2019, 06:05 AM)ioan Wrote: The problem it seems that has nothing to do with my timeout logic. The stuck sessions appear even without it with and with keepalive=true on all forms.

When the problem appears (this is only once in a while - about once or twice a day - usually at night at low traffic times), no sessions are terminated anymore. Even if I call Terminate, nothing happens. To test, I added this code to my application:

and no sessions were terminated (about 95% of the active sessions when the problem occurs will have the levelstring='' and activeform=nil). To test some more, I'll put the same code without the "if" and try to terminate all active sessions. I'll report back when I have the results.

Hi Ioan,

Maybe I missed something but I thought that you were saying that you weren't using KeepAlive (so I would expect that KeepAlive == False in all forms) and that you had an increasing number of sessions, which is not exactly the same as "sessions not terminating"...

Looking at your code, in theory, IWApplication.ActiveForm = nil should always evaluate to false, unless you are doing something like destroying all forms yourself before the application terminates.
Reply


Messages In This Thread
Active sessions problem - by ioan - 06-12-2019, 07:06 PM
RE: Active sessions problem - by kudzu - 06-12-2019, 09:53 PM
RE: Active sessions problem - by ioan - 06-13-2019, 01:25 PM
RE: Active sessions problem - by kudzu - 06-13-2019, 03:18 PM
RE: Active sessions problem - by DanBarclay - 06-13-2019, 08:38 PM
RE: Active sessions problem - by DanBarclay - 06-14-2019, 06:06 AM
RE: Active sessions problem - by ioan - 06-20-2019, 06:05 AM
RE: Active sessions problem - by Alexandre Machado - 06-20-2019, 09:12 AM
RE: Active sessions problem - by ioan - 06-20-2019, 06:31 PM
RE: Active sessions problem - by ioan - 06-26-2019, 07:47 AM
RE: Active sessions problem - by ioan - 06-26-2019, 06:38 PM
RE: Active sessions problem - by ioan - 06-27-2019, 07:27 AM
RE: Active sessions problem - by ioan - 06-27-2019, 10:40 AM

Forum Jump:


Users browsing this thread: 2 Guest(s)