Skip to content

AccountSession class

namespace: Serenity.Extensions   assembly: Serenity.Extensions

A session of a user, from a sign-in to its end, which the sign-in cookie refers to by SessionId, see IAccountSessionStore. The times are in UTC.

public class AccountSession

Public Members

name description
AccountSession() The default constructor.
CreatedDate { get; set; } When the user signed in.
EndedDate { get; set; } When the session ended, or null while it lasts.
EndReason { get; set; } Why the session ended.
ImpersonatorUserId { get; set; } The ID of the user who impersonates the user in this session, if any.
IPAddress { get; set; } The address of the client when it was last seen.
LastSeenDate { get; set; } When the session was last used, at most a validation interval ago while it is used.
Method { get; set; } How the user signed in, the authentication type, e.g. "Password" or "Google".
SessionId { get; set; } The ID of the session, a random text that the cookie has as a claim.
UserAgent { get; set; } The user agent of the client.
UserId { get; set; } The ID of the user.
Username { get; set; } The username of the user when the session began.

See Also