mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-04-05 21:01:35 +08:00
Closes #5389; Admin Culture Picker wrong cookie domain.
This commit is contained in:
parent
de9fc2fb5b
commit
c68d212681
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user