diff --git a/internal/session/provider_config.go b/internal/session/provider_config.go index 70ec4621a..24d9cd727 100644 --- a/internal/session/provider_config.go +++ b/internal/session/provider_config.go @@ -19,6 +19,10 @@ import ( func NewProviderConfig(configuration schema.SessionConfiguration, certPool *x509.CertPool) ProviderConfig { config := session.NewDefaultConfig() + config.SessionIDGeneratorFunc = func() []byte { + return []byte(utils.RandomString(30, utils.AlphaNumericCharacters)) + } + // Override the cookie name. config.CookieName = configuration.Name