TCustomSession class
Base class for HTTP session management
Declaration
TCustomSession = class(TComponent)Inheritance
- TCustomSession
- TComponent
- TPersistent
- TObject
Description
TCustomSession provides the foundation for HTTP session management functionality.
It handles session initialization, variable management, state tracking, and cleanup operations.
Properties
TimeOutMinutes | public | Session timeout period in minutes |
SessionID | public | Unique identifier for the session |
SessionCookie | public | Name of the cookie used to store session ID |
SessionCookiePath | public | Path attribute for the session cookie |
Variables | public | Access to session variables by name |
SessionState | public | Current state of the session |
SecureSession | public | |
SameSitePolicy | public |
Methods
AddToSessionState | protected | |
RemoveFromSessionState | protected | |
SetSessionCookie | protected | |
SetSessionCookiePath | protected | |
IsValidSessionID | protected | |
GetSessionID | protected | |
GetSessionVariable | protected | |
SetSessionVariable | protected | |
Create | public | Creates a new session instance |
InitSession | public | Initializes the session from HTTP request |
InitResponse | public | Initializes the HTTP response for the session |
UpdateResponse | public | Updates the HTTP response with session information |
RemoveVariable | public | Removes a variable from the session |
RegenerateSessionID | public | |
Terminate | public | Terminates and invalidates the session |
SessionVariableExists | public | Checks if a session variable exists |
Events
OnSessionStateChange | public | Event triggered when session state changes |
Inherited
From TComponent (75)
_AddRef _Release BeforeDestruction CanObserve ChangeName ComObject ComponentCount ComponentIndex Components ComponentState ComponentStyle DefineProperties DesignInfo Destroy DestroyComponents Destroying ExecuteAction FindComponent FreeNotification FreeOnRelease GetChildOwner GetChildParent GetChildren GetDeltaStreams GetEnumerator GetIDsOfNames GetNamePath GetObservers GetOwner GetParentComponent GetTypeInfo GetTypeInfoCount HasParent iicrGetComponent InsertComponent Invoke IsImplementorOf Loaded Loading Name Notification ObserverAdded Observers OnGetDeltaStreams Owner PaletteCreated QueryInterface ReadDeltaState ReadDeltaStream ReadState 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 (37)
AfterConstruction 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.
