#### [Abblix\.Oidc\.Server](https://www.abblix.com/en/docs/api/abblix-oidc-server 'index')
### [Abblix\.Oidc\.Server\.Features\.RandomGenerators](https://www.abblix.com/en/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Features.RandomGenerators '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\.

```csharp
public interface ISessionIdGenerator
```

Derived  
↳ [SessionIdGenerator](https://www.abblix.com/en/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Features.RandomGenerators.SessionIdGenerator 'Abblix\.Oidc\.Server\.Features\.RandomGenerators\.SessionIdGenerator')
### Methods

## ISessionIdGenerator\.GenerateSessionId\(\) Method {#Abblix.Oidc.Server.Features.RandomGenerators.ISessionIdGenerator.GenerateSessionId()}

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\.

```csharp
string GenerateSessionId();
```

#### Returns
[System\.String](https://learn.microsoft.com/en-us/dotnet/api/system.string '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\.
