Declaration¶
Source position: fphttp.pp line 145
type
TSessionHTTPModule = class(TCustomHTTPModule)
public
destructor destroy;
procedure HandleRequest;
function SessionExists : Boolean;
property CreateSession: Boolean; {rw}
property Session: TCustomSession; {rw}
property OnNewSession: TNotifyEvent; {rw}
property OnSessionExpired: TNotifyEvent; {rw}
end;
Description¶
TSessionHTTPModule extends HTTP modules with session management capabilities. It automatically manages user sessions across multiple HTTP requests.
Properties¶
| Member | Visibility | Description |
|---|---|---|
| CreateSession | public | Indicates if sessions should be created |
| Session | public | Current session object |
Methods¶
| Member | Visibility | Description |
|---|---|---|
| destroy | public | Destroys the session HTTP module |
| HandleRequest | public | Handles request with session management |
| SessionExists | public |
Events¶
| Member | Visibility | Description |
|---|---|---|
| OnNewSession | public | Event triggered when a new session is created |
| OnSessionExpired | public | Event triggered when a session expires |