NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: Flint G on February 23, 2010, 01:38:47 PM

Title: Detecting when a session is deleted
Post by: Flint G on February 23, 2010, 01:38:47 PM
Hello, NTC!

I want to detect when a session becomes invalid on the server side, so I can remove rows from an in-memory table related to that specific session.

Can I just call my code from the _DeleteSession(p_SessionID) method of the NetWebServer?

When does a session get deleted?  Is it after a period of time, or after a logout, or only when the server is shut down?

Thanks for the help!

Regards,
Flint
Title: Re: Detecting when a session is deleted
Post by: kevin plummer on February 23, 2010, 02:01:45 PM
Hi Flint,

do a search on this NG for DeleteSession. There have been some previous posts on this topic.

my understanding is the session gets deleted after a period of time which you can set on the main template and the other methods you described.
Title: Re: Detecting when a session is deleted
Post by: Bruce on February 23, 2010, 10:07:41 PM
Yes flint, add your code to the _deleteSession method in the web server, before the parent call.

As kevin says there are other threads which discuss this topic - the timeout is set by you on the advanced tab of the web server procedure settings.

cheers
Bruce