Sign in Join
FPDoc Onlineexperiment

TCustomSession.InitSession procedure

Member of TCustomSessionpublicIn unit HTTPDefs

Initializes the session from HTTP request

Declaration

pascal
procedure 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.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.