HTTP API Toolkit HTTP API Toolkit
HTTP API Toolkit HTTP API Toolkit
DocFX + Singulink = ♥

Search Results for

    Class SessionRecord

    Represents the values of a session record in the session store that are managed by the session handling service.

    Inheritance
    object
    SessionRecord
    Namespace: Singulink.Net.Http.Api.Service
    Assembly: Singulink.Net.Http.Api.Service.dll
    Syntax
    public class SessionRecord
    Remarks

    Session store contexts return an instance of this class when a session is loaded, and receive an instance containing the updated values when a session is refreshed. The refresh info (RefreshedUtc, ValidFor and Generation) is also what gets applied to session tokens when they are created.

    Constructors

    Name Description
    SessionRecord(string, IPAddress?, DateTime, TimeSpan, int, bool)

    Initializes a new instance of the SessionRecord class.

    Properties

    Name Description
    Device

    Gets the device that last refreshed the session.

    Generation

    Gets the generation of the session. This value is incremented each time the session is refreshed, and a token from the previous generation is accepted for a short grace period to allow for concurrent refresh requests.

    IpAddress

    Gets the IP address that last refreshed the session, or null if it is not known.

    IsPersistent

    Gets a value indicating whether the session is persistent (i.e. it survives browser or application restarts).

    RefreshedUtc

    Gets the date and time when the session was last refreshed (in UTC).

    ValidFor

    Gets the amount of time after the last refresh that the session remains valid, after which it expires and can no longer be refreshed.

    © Singulink. All rights reserved.