Unit 'HTTPDefs' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#fcl]

TCustomSession

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

Base class for HTTP session management

Declaration

Source position: httpdefs.pp line 645

type TCustomSession = class(TComponent)

public

  constructor Create(); override;

  

Creates a new session instance

  procedure InitSession(); virtual;

  

Initializes the session from HTTP request

  procedure InitResponse(); virtual;

  

Initializes the HTTP response for the session

  procedure UpdateResponse(); virtual; abstract;

  

Updates the HTTP response with session information

  procedure RemoveVariable(); virtual; abstract;

  

Removes a variable from the session

  procedure Terminate; virtual; abstract;

  

Terminates and invalidates the session

  function SessionVariableExists(); virtual; abstract;

  

Checks if a session variable exists

  property TimeOutMinutes: Integer; [rw]

  

Session timeout period in minutes

  property SessionID: string; [r]

  

Unique identifier for the session

  property SessionCookie: string; [rw]

  

Name of the cookie used to store session ID

  property SessionCookiePath: string; [rw]

  

Path attribute for the session cookie

  property Variables []: string; [rw]

  

Access to session variables by name

  property SessionState: TSessionStates; [r]

  

Current state of the session

  property OnSessionStateChange: TNotifyEvent; [rw]

  

Event triggered when session state changes

end;

Inheritance

TCustomSession

  

Base class for HTTP session management

|

TComponent

|

TPersistent,IUnknown,IInterfaceComponentReference

|

TObject,IFPObserved

Description

TCustomSession provides the foundation for HTTP session management functionality. It handles session initialization, variable management, state tracking, and cleanup operations.


Documentation generated on: Jan 16 2026