Topic Path: Symbol Reference > Classes > TIdHTTPCustomSessionList Class > TIdHTTPCustomSessionList Methods > PurgeStaleSessions Method
ContentsIndexHome
PreviousUpNext
TIdHTTPCustomSessionList.PurgeStaleSessions Method

Removes expired sessions from the session list.

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.

Copyright 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Post feedback to the Indy Docs Newsgroup.