mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Closes #5389; Admin Culture Picker wrong cookie domain.
This commit is contained in:
@@ -37,9 +37,7 @@ namespace Orchard.Localization.Selectors {
|
||||
Expires = _clock.UtcNow.AddYears(DefaultExpireTimeYear),
|
||||
};
|
||||
|
||||
if (!String.IsNullOrEmpty(_shellSettings.RequestUrlHost)) {
|
||||
cookie.Domain = _shellSettings.RequestUrlHost;
|
||||
}
|
||||
cookie.Domain = httpContext.Request.Url.Host;
|
||||
|
||||
if (!String.IsNullOrEmpty(_shellSettings.RequestUrlPrefix)) {
|
||||
cookie.Path = GetCookiePath(httpContext);
|
||||
|
Reference in New Issue
Block a user