Models.UserSession Class
Namespace: Nucleus.Abstractions.Models
Assembly: Nucleus.Abstractions.dll
Represent the session for a logged-in user.
Constructors
UserSession
UserSession ()
Initialize a new instance of UserSession.
UserSession
(Site, User, Boolean, IPAddress, DateTime, Boolean) Constructor
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.
Properties
DateAdded
Property
Record creation date date/time.
ExpiryDate
Property
Session expiry date/time.
Id
Property
Unique record identifier.
IsPersistent
Property
Gets or sets whether the browser cookie representing the session should persist between browser sessions.
IssuedDate
Property
Date/Time that the session was created.
LastUpdated
Property
This value is used to track the most recent database update for the user session.
RemoteIpAddress
Property
Address of the user-agent used to log in.
SiteId
Property
Site Id of the site that the user is logged into.
SlidingExpiry
Property
Gets or sets whether to update the session expiry date when a new request is processed.
UserId
Property
User Id of the user who owns the session.