Sign in Join
FPDoc Onlineexperiment

TSessionHTTPModule class

In unit fpHTTP

HTTP module with session support

Declaration

pascal
TSessionHTTPModule = class(TCustomHTTPModule)

Inheritance

  1. TSessionHTTPModule
  2. TCustomHTTPModule
  3. TDataModule
  4. TComponent
  5. TPersistent
  6. TObject

Descends from it: TCustomFPWebModule

Description

TSessionHTTPModule extends HTTP modules with session management capabilities. It automatically manages user sessions across multiple HTTP requests.

Properties

CreateSessionpublicIndicates if sessions should be created
SessionpublicCurrent session object

Methods

CheckSessionprotected
InitSessionprotected
UpdateSessionprotected
DoneSessionprotected
NotificationprotectedCalled by components that are freed and which received a FreeNotification.
destroypublicDestroys the session HTTP module
HandleRequestpublicHandles request with session management

Events

OnNewSessionpublicEvent triggered when a new session is created
OnSessionExpiredpublicEvent triggered when a session expires

Inherited

From TCustomHTTPModule (10)

AfterInitModule BaseURL CORS CreateCORSSUpport CreateNew DefaultModuleName DefaultSkipStreaming DoAfterInitModule Kind RegisterModule

From TDataModule (15)

AfterConstruction BeforeDestruction Create DefineProperties DesignOffset DesignPPI DesignSize DoCreate DoDestroy GetChildren HandleCreateException OldCreateOrder OnCreate OnDestroy ReadState

From TComponent (69)

_AddRef _Release CanObserve ChangeName ComObject ComponentCount ComponentIndex Components ComponentState ComponentStyle DesignInfo DestroyComponents Destroying ExecuteAction FindComponent FreeNotification FreeOnRelease GetChildOwner GetChildParent GetDeltaStreams GetEnumerator GetIDsOfNames GetNamePath GetObservers GetOwner GetParentComponent GetTypeInfo GetTypeInfoCount HasParent iicrGetComponent InsertComponent Invoke IsImplementorOf Loaded Loading Name ObserverAdded Observers OnGetDeltaStreams Owner PaletteCreated QueryInterface ReadDeltaState ReadDeltaStream ReferenceInterface RemoveComponent RemoveFreeNotification RemoveFreeNotifications SafeCallException SetAncestor SetChildOrder SetDesigning SetDesignInstance SetInline SetName SetParentComponent SetSubComponent Tag ToString TToStringNameMode UpdateAction Updated UpdateRegistry Updating ValidateContainer ValidateInsert ValidateRename VCLComObject WriteState

From TPersistent (5)

Assign AssignTo FPOAttachObserver FPODetachObserver FPONotifyObservers

From TObject (36)

CheckDisposed ClassInfo ClassName ClassNameIs ClassParent ClassType CleanupInstance DefaultHandler DefaultHandlerStr Dispatch DispatchStr Disposed DisposeOf Equals FieldAddress Free FreeInstance GetDisposed GetHashCode GetInterface GetInterfaceByStr GetInterfaceEntry GetInterfaceEntryByStr GetInterfaceTable GetInterfaceWeak GetLastCastErrorInfo InheritsFrom InitInstance InstanceSize MethodAddress MethodName newinstance QualifiedClassName StringMessageTable SystemHasExtendedRTTI UnitName

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