using VNLib.Net.Http;
namespace VNLib.Plugins.Essentials.Sessions.VNCache
{
///
/// Id factory for
///
internal interface IWebSessionIdFactory: ISessionIdFactory
{
///
/// The maxium amount of time a session is valid for. Sessions will be invalidated
/// after this time
///
TimeSpan ValidFor { get; }
///
/// Gets a new session-id for the connection and manipulates the entity as necessary
///
/// The connection to generate the new session for
/// The new session-id
string GenerateSessionId(IHttpEvent entity);
}
}