NetTalk Central
NetTalk Web Server => Web Server - Ask For Help => Topic started by: Alberto 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?
-
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.
-
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.