NetTalk Central

Author Topic: Detecting when a session is deleted  (Read 5009 times)

Flint G

  • Jr. Member
  • **
  • Posts: 56
    • View Profile
    • Email
Detecting when a session is deleted
« 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
« Last Edit: February 23, 2010, 01:59:08 PM by flintg »
NetTalk: 14.21
Clarion: 11.0.13505
Brave: 1.77.97
Chrome: 135.0.7049.96
Edge: 135.0.3179.73
ExtJS: 7.0.0.156

kevin plummer

  • Hero Member
  • *****
  • Posts: 1195
    • View Profile
    • Production Accounting and Software Payroll
Re: Detecting when a session is deleted
« Reply #1 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.

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11300
    • View Profile
Re: Detecting when a session is deleted
« Reply #2 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