NetTalk Central

Author Topic: Sessions timout problem  (Read 3671 times)

Alberto

  • Hero Member
  • *****
  • Posts: 1873
    • MSN Messenger - alberto-michelis@hotmail.com
    • View Profile
    • ARMi software solutions
    • Email
Sessions timout problem
« on: May 14, 2020, 02:54:41 AM »
Im testing a new NT server for eCommerce

Clients can buy without get registered so they are not logged in.

I have "Delete Session on Logout" = true in the Webserver and a "session timeout" of 00:01 to test

The session expires and the server goes to the "DisconectedPage", but it never reachs NotifyDeleteSession.

And that page is Getted once a minute for ever , please see pic

It seams the sessions never expires because when I restart the server I get a bunch of

<Deleting Session="084388099 "thread="10" NumberOfThreads="8" MaxThreads="100"

What am I doing wrong?

Im calling NotifyDeleteSession from the DisconectedPage to achive this but I dont know if its correct.

Thanks

PD Is there any way to set different timeouts per session?




« Last Edit: May 15, 2020, 04:28:18 AM by michelis »
-----------
Regards
Alberto

Matthew51

  • Full Member
  • ***
  • Posts: 152
    • View Profile
    • Email
Re: Sessions timout problem
« Reply #1 on: May 15, 2020, 01:29:06 PM »
I've noticed that the server will take a few min to actually delete the session, some times up to 5. Also I feel like the server needs some kind of event to trigger the code, clicking on the web server window, or another user sending a request. If the page is getting refreshed every min then the session will get touched, resetting the timer.

These have just been my observations as I'm working on a server where I need to delete a bunch of rows when a session is deleted.
Contractor with 10+ years of NetTalk experience looking for work.
www.linkedin.com/in/matthew-leavitt
BisWare.ca
Check out my free EasyTime Template

Graham

  • Jr. Member
  • **
  • Posts: 57
    • View Profile
Re: Sessions timout problem
« Reply #2 on: May 15, 2020, 09:16:58 PM »
Add a Timer to the WebServer window properties - I use a timer value of 300

If server is idle, the timer will trigger WebServer event handling, Session Expiry etc.