From 6b57c054f2e181997836889b69892d3c5b002c7f Mon Sep 17 00:00:00 2001 From: maliming Date: Sat, 9 Mar 2024 13:52:44 +0800 Subject: [PATCH] Update POST.md --- .../2024-03-03-Share-Cookies-BetweenSubDomains/POST.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/en/Community-Articles/2024-03-03-Share-Cookies-BetweenSubDomains/POST.md b/docs/en/Community-Articles/2024-03-03-Share-Cookies-BetweenSubDomains/POST.md index b5e7232e1c..41ebc3ac92 100644 --- a/docs/en/Community-Articles/2024-03-03-Share-Cookies-BetweenSubDomains/POST.md +++ b/docs/en/Community-Articles/2024-03-03-Share-Cookies-BetweenSubDomains/POST.md @@ -2,9 +2,9 @@ ## Introduction -Share cookies between subdomains is a common requirement in web development. For example, you have a website with multiple subdomains, and you want to share the login status between these subdomains. +Share cookies between subdomains is a common requirement in web development. For example, you have a website with multiple subdomains, and you want to share the login status between these subdomains. Once a user logs in to one subdomain, the user should be logged in to all subdomains. -Once a user logs in to one subdomain, the user should be logged in to all subdomains. This article will show you how to achieve this in an ASP.NET Core application. +This article will show you how to achieve this in an ASP.NET Core application. ## Implementation principle @@ -78,6 +78,8 @@ Set-Cookie: .AspNetCore.Culture=c%3Den%7Cuic%3Den; expires=Mon, 09 Mar 2026 02:0 The subdomains can share the `.AspNetCore.Culture` cookie now. +In another community article we use same middleware to [fix the Chrome login issue for the IdentityServer4](https://community.abp.io/posts/patch-for-chrome-login-issue-identityserver4-samesite-cookie-problem-weypwp3n) + ## Summary The `CookiePolicy` middleware provides a way to control cookies in an ASP.NET Core, It very useful if you have more complex requirements for Cookies.