diff --git a/Teknik/Areas/Profile/Controllers/ProfileController.cs b/Teknik/Areas/Profile/Controllers/ProfileController.cs index f80a81b..54e95e7 100644 --- a/Teknik/Areas/Profile/Controllers/ProfileController.cs +++ b/Teknik/Areas/Profile/Controllers/ProfileController.cs @@ -139,8 +139,8 @@ namespace Teknik.Areas.Profile.Controllers } HttpCookie authcookie = FormsAuthentication.GetAuthCookie(model.Username, model.RememberMe); authcookie.Name = ".TeknikAuth"; - authcookie.Domain = "." + Config.Host; - Response.Cookies.Add(authcookie); + authcookie.Domain = Config.Host; + Response.AppendCookie(authcookie); if (string.IsNullOrEmpty(model.ReturnUrl)) { diff --git a/Teknik/Web.config b/Teknik/Web.config index f6a72e4..12b4c88 100644 --- a/Teknik/Web.config +++ b/Teknik/Web.config @@ -18,7 +18,9 @@ - + + +