Topic Path: Symbol Reference > Classes > TIdHTTPSession Class > TIdHTTPSession Methods > Destroy Destructor
ContentsIndexHome
PreviousUpNext
TIdHTTPSession.Destroy Destructor

Frees the object instance.

destructor Destroy; override;

Destroy is an overridden procedure that acts as the destructor for the object instance. Destroy is responsible for handling persistent session clean-up and freeing resources allocated for properties in the HTTP session. 

Destroy triggers the OnSessionEnd event handler that signals the session should be removed from the session list that own the HTTP session. 

Destroy frees and releases resources allocated to the Content property. 

Destroy frees and release resources allocated to the internal TIdCriticalSection instance used for resource protection in Lock and Unlock

When the Owner of the session is assigned, the RemoveSession method for the TIdHTTPCustomSessionList instance is called to remove the current session from the session list. 

Destroy calls the inherited destructor proper to exiting from the method.

Create 

CreateInitialized 

Content 

Lock 

Unlock 

TIdHTTPCustomSessionList.OnSessionEnd 

TIdHTTPCustomSessionList.RemoveSession

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