From b78fdf78fc099b8c84d27b65931bae398431c54a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Thierry=20K=C3=A9chichian?= Date: Thu, 14 Apr 2022 20:02:52 +0200 Subject: [PATCH] Cookie name per Application and accross its Instances (#11535) --- .../Modules/Extensions/ServiceCollectionExtensions.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/OrchardCore/OrchardCore/Modules/Extensions/ServiceCollectionExtensions.cs b/src/OrchardCore/OrchardCore/Modules/Extensions/ServiceCollectionExtensions.cs index fe88d1d8f0b..6a2f33f0ae5 100644 --- a/src/OrchardCore/OrchardCore/Modules/Extensions/ServiceCollectionExtensions.cs +++ b/src/OrchardCore/OrchardCore/Modules/Extensions/ServiceCollectionExtensions.cs @@ -312,7 +312,7 @@ private static void AddAntiForgery(OrchardCoreBuilder builder) var settings = serviceProvider.GetRequiredService(); var environment = serviceProvider.GetRequiredService(); - var cookieName = "orchantiforgery_" + HttpUtility.UrlEncode(settings.Name + environment.ContentRootPath); + var cookieName = "__orchantiforgery_" + settings.VersionId; // If uninitialized, we use the host services. if (settings.State == TenantState.Uninitialized)