Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Memory Leaks
#6
Hi Shane,

one possibility is setting IWForm.KeepAlive = True for your forms. This is easier accomplished when you use virtual form inheritance, so you set the base form to True and all forms are also set.

Then you can set your ServerController.SessionTimeout to a small value (depending on your case). You can start with 2 minutes, for instance, and see how it goes.

KeepAlive will periodically send an Ajax request to your server and the session won't expire, as long as there is an active form. This might have a potential drawback which is, the session might be active for extremely long periods if the user keep it the browser tab opened. 

On the other hand, when the browser tab containing the application closes it will stop sending this request and the session will expire within a shorter time (according to your SessionTimeout setting).
Reply


Messages In This Thread
Memory Leaks - by ShaneStump - 08-08-2018, 06:40 PM
RE: Memory Leaks - by fduenas - 08-08-2018, 07:44 PM
RE: Memory Leaks - by ShaneStump - 08-08-2018, 10:08 PM
RE: Memory Leaks - by fduenas - 08-08-2018, 08:53 PM
RE: Memory Leaks - by EitanArbel - 08-08-2018, 09:02 PM
RE: Memory Leaks - by Alexandre Machado - 08-14-2018, 08:35 AM

Forum Jump:


Users browsing this thread: 2 Guest(s)