[This is preliminary documentation and is subject to change.]
The BaseSession type exposes the following members.Constructors
Name | Description | |
---|---|---|
![]() | BaseSession | Initializes a new instance of the BaseSession class |
![]() | BaseSession(Guid) | Initializes a new instance of the BaseSession class |
Methods
Name | Description | |
---|---|---|
![]() | Acquire | |
![]() | End |
Ends session
|
![]() | ![]() | Determines whether the specified object is equal to the current object. (Inherited from ![]() |
![]() | ![]() | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from ![]() |
![]() | ![]() | Serves as the default hash function. (Inherited from ![]() |
![]() | ![]() | Gets the (Inherited from ![]() ![]() |
![]() | HasJustLoggedIn |
Called from business code when user supplies login credentals and/or performs another action
that can be qualified as a reliable user identity proof
|
![]() | ![]() | Creates a shallow copy of the current (Inherited from ![]() ![]() |
![]() | RegenerateID |
Generates new GUID and stores it in ID storing old ID value in OldID property which is not serializable.
The implementations may elect to re-stow the existing session under the new ID.
This method is usefull for security, i.e. when user logs-in we may want to re-generate ID
|
![]() | Release | |
![]() | ![]() | Returns a string that represents the current object. (Inherited from ![]() |
Extension Methods
Fields
Name | Description | |
---|---|---|
![]() | m_IsEnded | |
![]() | m_IsJustLoggedIn | |
![]() | m_IsNew |
Properties
Name | Description | |
---|---|---|
![]() | ID |
Returns Session ID
|
![]() | IDSecret |
Returns Session ID secret - the ulong that identifies this session.
This property is needed for cross-check upon GUID id lookup, so that
Session ID GUID can not be forged by the client - a form of a "password"
|
![]() | IsEnded |
Indicates whether this session was ended and will be destroyed after current request processing cycle
|
![]() | IsJustLoggedIn |
Indicates that user login happened in current request processing cycle. This flag is
useful for long term token assignment on release
|
![]() | IsNew |
Indicates that session object was just created with current request processing cycle
|
![]() | Item |
Shortcut to .Items. Getter return null instead of throwing if key is not found
|
![]() | Items |
Provides a thread-safe dictionary of items
|
![]() | LanguageISOCode |
Returns user language preference or null
|
![]() | LastLoginType |
Returns the last login type
|
![]() | LastLoginUTC |
Returns the UTC DateTime of the last login/when HasJustLoggedIn() was called for the last time within the lifetime of this session object or NULL
|
![]() | OldID |
When this parameter is not null then RegenerateID() was called and session provider may need to re-stow session object under a new ID
|
![]() | User |
Returns session user
|
See Also