NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: Mike McLoughlin on June 15, 2009, 01:52:22 PM

Title: DeleteSession and timeout
Post by: Mike McLoughlin 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)
Title: Re: DeleteSession and timeout
Post by: Bruce 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


Title: Re: DeleteSession and timeout
Post by: Mike McLoughlin 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
Title: Re: DeleteSession and timeout
Post by: Bruce 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