ISessionManager
Overview
The ISessionManager interface provides abstract interface for concrete session manager implementations.
Location
- Reference: RemObjects.SDK.Server.dll
- Namespace: RemObjects.SDK.Server
- Ancestry: ISessionManager
DestroySession
Destroys session with provided Id.
method DestroySession(sessionId: Guid)
void DestroySession(Guid sessionId)
Sub DestroySession(sessionId As Guid)
Parameters:
- sessionId: Session Id
GetAllSessions
Returns identifiers of all non-expired sessions stored in thesession manager.
method GetAllSessions: IList<Guid>
IList<Guid> GetAllSessions()
Function GetAllSessions() As IList<Guid>
GetExistingSession
Returns existing session with provided Id or null in case the session cannot be found. Depending on the updateTime parameter value updates the session's LastaccessedTime attribute.
method GetExistingSession(sessionId: Guid; updateTime: Boolean): ISession
ISession GetExistingSession(Guid sessionId, Boolean updateTime)
Function GetExistingSession(sessionId As Guid, updateTime As Boolean) As ISession
Parameters:
- sessionId: Session Id
- updateTime: Flag indicating whether session's LastAccessedTime attribute should be updated
GetSession
Returns session with provided Id. If there is no session stored with the provided Id then new session is created.
method GetSession(sessionId: Guid): ISession
ISession GetSession(Guid sessionId)
Function GetSession(sessionId As Guid) As ISession
Parameters:
- sessionId: Session Id
IsOutOfProcess
Gets a flag indicating that session manager uses out-of-process session storage.
It is strongly recommended to avoid storing complex objects in user sessions in case this property returns true.
property IsOutOfProcess: Boolean read;
Boolean IsOutOfProcess { get; }
ReadOnly Property IsOutOfProcess() As Boolean
ReleaseSession
Releases session back into the session storage.
method ReleaseSession(session: ISession)
void ReleaseSession(ISession session)
Sub ReleaseSession(session As ISession)
Parameters:
- session: Session instance
IsOutOfProcess
Gets a flag indicating that session manager uses out-of-process session storage.
It is strongly recommended to avoid storing complex objects in user sessions in case this property returns true.
property IsOutOfProcess: Boolean read;
Boolean IsOutOfProcess { get; }
ReadOnly Property IsOutOfProcess() As Boolean
DestroySession
Destroys session with provided Id.
method DestroySession(sessionId: Guid)
void DestroySession(Guid sessionId)
Sub DestroySession(sessionId As Guid)
Parameters:
- sessionId: Session Id
GetAllSessions
Returns identifiers of all non-expired sessions stored in thesession manager.
method GetAllSessions: IList<Guid>
IList<Guid> GetAllSessions()
Function GetAllSessions() As IList<Guid>
GetExistingSession
Returns existing session with provided Id or null in case the session cannot be found. Depending on the updateTime parameter value updates the session's LastaccessedTime attribute.
method GetExistingSession(sessionId: Guid; updateTime: Boolean): ISession
ISession GetExistingSession(Guid sessionId, Boolean updateTime)
Function GetExistingSession(sessionId As Guid, updateTime As Boolean) As ISession
Parameters:
- sessionId: Session Id
- updateTime: Flag indicating whether session's LastAccessedTime attribute should be updated
GetSession
Returns session with provided Id. If there is no session stored with the provided Id then new session is created.
method GetSession(sessionId: Guid): ISession
ISession GetSession(Guid sessionId)
Function GetSession(sessionId As Guid) As ISession
Parameters:
- sessionId: Session Id
ReleaseSession
Releases session back into the session storage.
method ReleaseSession(session: ISession)
void ReleaseSession(ISession session)
Sub ReleaseSession(session As ISession)
Parameters:
- session: Session instance