Internet Direct (Indy)
Home
PreviousUpNext
TIdHTTPSession.Destroy Destructor

Frees the object instance.

Pascal
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

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.