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

TCustomSession.InitSession

Initializes the session from HTTP request

Declaration

Source position: httpdefs.pp line 667

public procedure TCustomSession.InitSession(

  ARequest: TRequest;

  OnNewSession: TNotifyEvent;

  OnExpired: TNotifyEvent

); virtual;

Arguments

ARequest

  

HTTP request to initialize session from

OnNewSession

  

Event handler called when new session is created

OnExpired

  

Event handler called when session expires

Description

InitSession initializes the session using data from the HTTP request. It reads session cookies and triggers the new session event handler if needed.


Documentation generated on: Jan 16 2026