Search Results for

    Show / Hide Table of Contents
    View Source

    Interface IUserSessionStore<TUser>

    An IUserStore interface part to implement if the store supports validating user session Ids

    Namespace: Umbraco.Cms.Core.Security
    Assembly: Umbraco.Infrastructure.dll
    Syntax
    public interface IUserSessionStore<TUser> where TUser : class
    Type Parameters
    Name Description
    TUser

    The user type

    Methods

    View Source

    ValidateSessionIdAsync(string?, string?)

    Asynchronously determines whether the specified user's session is still valid.

    Declaration
    Task<bool> ValidateSessionIdAsync(string? userId, string? sessionId)
    Parameters
    Type Name Description
    string userId

    The ID of the user whose session validity is being checked.

    string sessionId

    The session ID to validate.

    Returns
    Type Description
    Task<bool>

    A task that represents the asynchronous operation. The task result is true if the session is valid; otherwise, false.

    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX