TROInMemorySessionManager Class

This is a Library topic for RemObjects SDK for Delphi
This page is generated from external data, please do not update
Interfaces — Classes — Aliases — Implements
Contents |
Overview
TROInMemorySessionManager implements a session manager that stores session data in local memory.
Location
uROSessions.pas
- Ancestry: TComponent | TROComponent | TROCustomSessionManager | TROInMemorySessionManager
Properties
| Clearing protected (declared in TROCustomSessionManager) |
|---|
|
|
| Critical (declared in TROCustomSessionManager) |
|
|
| MaxSessions (declared in TROCustomSessionManager) |
|
Specifies the maximum number of sessions that will be allowed. -1 (the default) indicates that no limit on number of sessions will be enforced. Allowing a server to run without enforcing any limit on the number of sessions might pose a security risk, as malicious clients could theoretically start an infinite number of sessions by performing repeated requests with changing Client IDs, until server memory is depleted. You should make sure to either set a limit, or tie session creation to user authentication, so that only valid client users can obtain a session(and possibly only one session per login).
|
| SessionCheckInterval |
|
|
| SessionDuration |
|
The time, in minutes, that a session will persist before timing out (default is 15 minutes). The timeout for each individual session will be reset every time the session is accessed; after SessionDuration minutes have passed without access to the session, it will be discarded. Note: The exact handling of the timeout processing depends on the implementation of the specific session manager, which might check session timeouts at intervals. Therefore, sessions might live slightly longer than the specified timeout.
|
Instance Methods
| constructor Create override |
|---|
|
|
| destructor Destroy override |
|
|
| Assign override (declared in TROCustomSessionManager) |
|
|
| CheckProperties virtual (declared in TROCustomSessionManager) |
|
|
| CheckSessionIsExpired (declared in TROCustomSessionManager) |
|
|
| ClearSessions (declared in TROCustomSessionManager) |
|
Discards all sessions within the session manager, so that any new call from a client will start with a fresh session.
|
| CreateSession (declared in TROCustomSessionManager) |
|
|
| CreateTimerByRequest protected (declared in TROCustomSessionManager) |
|
|
| DeleteSession (declared in TROCustomSessionManager) |
|
|
| DeleteTemporarySession (declared in TROCustomSessionManager) |
|
|
| DoCheckSessionIsExpired protected virtual (declared in TROCustomSessionManager) |
|
|
| DoClearSessions protected override |
|
|
| DoCreateSession protected virtual (declared in TROCustomSessionManager) |
|
|
| DoDeleteSession protected override |
|
|
| DoFindSession protected override |
|
|
| DoGetAllSessions protected override |
|
|
| DoGetSessionCount protected override |
|
|
| DoNotifySessionsChangesListener protected virtual (declared in TROCustomSessionManager) |
|
|
| DoReleaseSession protected override |
|
|
| DoTimerTick protected virtual (declared in TROCustomSessionManager) |
|
|
| FindSession (declared in TROCustomSessionManager) |
|
|
| GetAllSessions (declared in TROCustomSessionManager) |
|
Returns a string list containing the IDs of all currently active sessions. Depending on the session manager and on your application architecture, this list can be huge, especially when using a database based session list that is shared by a large server farm. Obtaining the full list of sessions can be a costly process.
|
| GetSessionCount (declared in TROCustomSessionManager) |
|
|
| KillTimer protected (declared in TROCustomSessionManager) |
|
|
| Notification protected override (declared in TROComponent) |
|
|
| RegisterSessionsChangesListener protected virtual (declared in TROCustomSessionManager) |
|
|
| ReleaseSession (declared in TROCustomSessionManager) |
|
|
| ROFreeNotification (declared in TROComponent) |
|
|
| RORemoveFreeNotification (declared in TROComponent) |
|
|
| SendRemoveNotification protected (declared in TROComponent) |
|
|
| UnRegisterSessionsChangesListener protected virtual (declared in TROCustomSessionManager) |
|
|
Events
| OnBeforeDeleteSession (declared in TROCustomSessionManager) |
|---|
|
|
| OnCustomCreateSession (declared in TROCustomSessionManager) |
|
|
| OnException (declared in TROCustomSessionManager) |
|
|
| OnMaxSessionsReached (declared in TROCustomSessionManager) |
|
|
| OnSessionCreated (declared in TROCustomSessionManager) |
|
|
| OnSessionDeleted (declared in TROCustomSessionManager) |
|
|
See Also
- Session Management
- Statelessness
- Lists
- RemObjects SDK for Delphi: Interfaces — Classes — Aliases — Implements
- RemObjects SDK shared: Data Types – File Types
- other editions
- RemObjects SDK for .NET: Namespaces — Interfaces — Classes — Enums — Implements
- RemObjects SDK for Xcode: Protocols — Classes — Enums — Aliases — Implements
- RemObjects SDK for Java: Namespaces — Interfaces — Classes — Enums — Implements
- RemObjects SDK for JavaScript: Objects

Product: RemObjects SDK
Available Editions: RemObjects SDK for .NET, Xcode, Delphi, Java and JavaScript