Internet Direct (Indy)
Home
PreviousUpNext
TIdHTTPCustomSessionList.PurgeStaleSessions Method

Removes expired sessions from the session list.

Pascal
procedure PurgeStaleSessions(
    PurgeAll: Boolean = false
); virtual; abstract;
Parameters 
Description 
PurgeAll 
Indicates all stale sessions are to be removed. 

PurgeStaleSessions is an abstract virtual procedure that specifies the mechanism used to remove a HTTP session where the LastTimeStamp for the session and the SessionTimeout properties indicate that the session has expired. PurgeStaleSessions is used (in a thread) for HTTP server implementation that maintain persistent sessions. 

All methods in TIdHTTPCustomSessionList are declared as virtual abstract procedures and functions, and must be overridden in a descendant class to provide access to the storage mechanism used for the session list.

Internet Direct (Indy) version 10.1.5
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Website http://www.indyproject.org.
Post feedback to the Indy Documentation newsgroup.