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 SourceValidateSessionIdAsync(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 |