Nucleus .Net Core CMS

Models.UserSession Class

Namespace: Nucleus.Abstractions.Models
Assembly: Nucleus.Abstractions.dll
Represent the session for a logged-in user.
UserSession ()
Initialize a new instance of UserSession.
Remarks
This constructor is used when reading an existing session.
UserSession (Nucleus.Abstractions.Models.Site,  Nucleus.Abstractions.Models.User,  System.Boolean,  System.Net.IPAddress,  System.DateTime,  System.Boolean)
Initialize a new UserSession for a specified site, user, and IP address.
Remarks
This constructor is used when a user logs in.
Record creation date date/time.
Session expiry date/time.
Unique record identifier.
Gets or sets whether the browser cookie representing the session should persist between browser sessions.
Date/Time that the session was created.
This value is used to track the most recent database update for the user session.
Address of the user-agent used to log in.
Remarks
The remote IP address must match for all subsequent uses of the session.
Site Id of the site that the user is logged into.
Gets or sets whether to update the session expiry date when a new request is processed.
User Id of the user who owns the session.