[This is preliminary documentation and is subject to change.]
The WaveSession type exposes the following members.Constructors
| Name | Description | |
|---|---|---|
| WaveSession | Initializes a new instance of the WaveSession class | |
| WaveSession(Guid) | Initializes a new instance of the WaveSession class |
Methods
| Name | Description | |
|---|---|---|
| Acquire | (Inherited from BaseSession.) | |
| End |
Ends session
(Inherited from BaseSession.) | |
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
(Inherited from BaseSession.) | |
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
(Inherited from BaseSession.) | |
| Release | (Inherited from BaseSession.) | |
Returns a string that represents the current object. (Inherited from |
Extension Methods
Fields
| Name | Description | |
|---|---|---|
| GeoEntity |
Stores user Geographical/Location information
| |
| m_IsEnded | (Inherited from BaseSession.) | |
| m_IsJustLoggedIn | (Inherited from BaseSession.) | |
| m_IsNew | (Inherited from BaseSession.) |
Properties
| Name | Description | |
|---|---|---|
| CSRFToken |
Unique token assigned at session start used for checking of form posts.
This is for Cross Site Request Forgery protection.
| |
| ID |
Returns Session ID
(Inherited from BaseSession.) | |
| 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"
(Inherited from BaseSession.) | |
| IsEnded |
Indicates whether this session was ended and will be destroyed after current request processing cycle
(Inherited from BaseSession.) | |
| IsJustLoggedIn |
Indicates that user login happened in current request processing cycle. This flag is
useful for long term token assignment on release
(Inherited from BaseSession.) | |
| IsNew |
Indicates that session object was just created with current request processing cycle
(Inherited from BaseSession.) | |
| Item |
Shortcut to .Items. Getter return null instead of throwing if key is not found
(Inherited from BaseSession.) | |
| Items |
Provides a thread-safe dictionary of items
(Inherited from BaseSession.) | |
| LanguageISOCode |
Returns user language preference or null
(Inherited from BaseSession.) | |
| LastLoginType |
Returns the last login type
(Inherited from BaseSession.) | |
| 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
(Inherited from BaseSession.) | |
| 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
(Inherited from BaseSession.) | |
| User |
Returns session user
(Inherited from BaseSession.) |
See Also