ISessionIdGenerator Interface
Abblix.Oidc.Server
Abblix.Oidc.Server.Features.RandomGenerators
ISessionIdGenerator Interface
Defines the interface for generating new session identifiers, which are crucial for tracking user sessions in web applications, especially in scenarios involving authentication and authorization processes.
public interface ISessionIdGenerator
Derived
↳ SessionIdGenerator
Methods
ISessionIdGenerator.GenerateSessionId() Method
Generates a new, unique session identifier. This method is responsible for producing session IDs that are sufficiently random and unique to securely identify individual user sessions. The generated IDs are used in session management mechanisms to differentiate between user sessions, thereby ensuring that user data and interactions are isolated and protected across different sessions.
string GenerateSessionId();
Returns
System.String
A new, unique session identifier as a string. The format and characteristics of the session ID
(e.g., length, characters used) should be designed to enhance security and minimize the risk of session
hijacking or collision.