NetTalk Central

Author Topic: How to not timeout a session?  (Read 3464 times)

peterH

  • Sr. Member
  • ****
  • Posts: 413
    • View Profile
How to not timeout a session?
« on: May 31, 2016, 02:10:29 AM »
What do you put in "Session Timeout" if you want the session to NEVER timeout?

Thanks
Peter

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: How to not timeout a session?
« Reply #1 on: May 31, 2016, 06:35:41 AM »
Hi Peter,

You could turn off Session Deletion _completely_ by overriding the _GarbageCollector method in the WebServer procedure.
ie in WebServer, in _GarbageCollector method.

Before the parent call;
RETURN

BUT - and it's a rather big BUT - I would do this with some caution. Never means Never, which means that eventually the server will consume memory until it is all gone. Each time a client machine reboots they will get a new session, so even if you had a limited number of client machines you will have infinite sessions.

IF you want a "really long" timeout, that's possible - if so ask that as a new question :)

Cheers
Bruce