NetTalk Central

Author Topic: DeleteSession and timeout  (Read 3719 times)

Mike McLoughlin

  • Full Member
  • ***
  • Posts: 126
    • View Profile
    • Clarion Templates
    • Email
DeleteSession and timeout
« on: June 15, 2009, 01:52:22 PM »
Following a suggestion in another msg here, I put some code in the routine DeleteSession to delete memory table records for that session.

I put in a message(total#) to see how many had been deleted and a timeout of 1 min (00:01).

But the msg never showed until I closed down the web server app.  I thought that 1 minute afer exiting IE it would come up.

What am I missing?

TIA

Mike
(using 4.32)
Mike McLoughlin

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: DeleteSession and timeout
« Reply #1 on: June 15, 2009, 08:51:47 PM »
Hi Mike,

Into which procedure did you embed your message?

The WebHandler one is there only for you to call manually - it is not called automatically.

The one in WebServer is called automatically.
In addition it takes an event, any event will do, to trigger the garbage collector in WebServer.

Cheers
Bruce



Mike McLoughlin

  • Full Member
  • ***
  • Posts: 126
    • View Profile
    • Clarion Templates
    • Email
Re: DeleteSession and timeout
« Reply #2 on: June 16, 2009, 06:27:45 AM »
Hi Bruce

I put the message in ThisWebServer._DeleteSession PROCEDURE(long p_SessionID)

Is this what you call the "garbage collector"?

Could you give me an example of an event I need to POST to trigger it

regards

Mike
Mike McLoughlin

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: DeleteSession and timeout
« Reply #3 on: June 16, 2009, 06:34:47 AM »
any event will do. A timer on the window if you like.
In the case of a normal web server an incoming request would be sufficient.

Cheers
Bruce