diff --git a/demo/Taiizor.Starterkit.Demo/Taiizor.Starterkit.Demo/Taiizor.Starterkit.Demo.csproj b/demo/Taiizor.Starterkit.Demo/Taiizor.Starterkit.Demo/Taiizor.Starterkit.Demo.csproj index 685bd9e..f5f789f 100644 --- a/demo/Taiizor.Starterkit.Demo/Taiizor.Starterkit.Demo/Taiizor.Starterkit.Demo.csproj +++ b/demo/Taiizor.Starterkit.Demo/Taiizor.Starterkit.Demo/Taiizor.Starterkit.Demo.csproj @@ -14,7 +14,7 @@ - + \ No newline at end of file diff --git a/src/Taiizor.Starterkit/Extension/Theme.cs b/src/Taiizor.Starterkit/Extension/Theme.cs index d43345a..5c9330a 100644 --- a/src/Taiizor.Starterkit/Extension/Theme.cs +++ b/src/Taiizor.Starterkit/Extension/Theme.cs @@ -717,6 +717,18 @@ public string GetAntiforgeryCookieDomain() return ThemeSettings.Config.Antiforgery.CookieDomain; } + // Set the application cookie domain + public void SetApplicationCookieDomain(string flag) + { + ThemeSettings.Config.Application.CookieDomain = flag; + } + + // Get the application cookie domain + public string GetApplicationCookieDomain() + { + return ThemeSettings.Config.Application.CookieDomain; + } + // Set the tempdata cookie domain public void SetTempDataCookieDomain(string flag) { diff --git a/src/Taiizor.Starterkit/Interface/ITheme.cs b/src/Taiizor.Starterkit/Interface/ITheme.cs index 2a4e911..a631a58 100644 --- a/src/Taiizor.Starterkit/Interface/ITheme.cs +++ b/src/Taiizor.Starterkit/Interface/ITheme.cs @@ -182,6 +182,10 @@ public interface ITheme string GetAntiforgeryCookieDomain(); + void SetApplicationCookieDomain(string flag); + + string GetApplicationCookieDomain(); + void SetTempDataCookieDomain(string flag); string GetTempDataCookieDomain(); diff --git a/src/Taiizor.Starterkit/Taiizor.Starterkit.csproj b/src/Taiizor.Starterkit/Taiizor.Starterkit.csproj index 596ca4b..a20c1a9 100644 --- a/src/Taiizor.Starterkit/Taiizor.Starterkit.csproj +++ b/src/Taiizor.Starterkit/Taiizor.Starterkit.csproj @@ -13,7 +13,7 @@ Resources\Taiizor.Starterkit.ico - 1.1.4.3 + 1.1.4.4 $(Version) true Taiizor.Starterkit diff --git a/tutorial/C#/#002 install-from-nuget/install-from-nuget/install-from-nuget.csproj b/tutorial/C#/#002 install-from-nuget/install-from-nuget/install-from-nuget.csproj index bf75564..b4763d9 100644 --- a/tutorial/C#/#002 install-from-nuget/install-from-nuget/install-from-nuget.csproj +++ b/tutorial/C#/#002 install-from-nuget/install-from-nuget/install-from-nuget.csproj @@ -8,7 +8,7 @@ - + \ No newline at end of file