Closes #5389; Admin Culture Picker wrong cookie domain.

This commit is contained in:
Skrypt
2015-06-17 20:02:04 -04:00
parent 8eea9a6771
commit 43497c8093

View File

@@ -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);