I am using simple method for creating cookies.
FormsAuthentication.SetAuthCookie(model.UserName, model.RememberMe);
return RedirectToAction("Index", "Dashboard");
Somehow I debugged my application and found that User.Identity.IsAuthenticated
is always false and User.Identity.Name
is also null.
Note: Above behavior is only for SAFARI and works absolutely fine with other browsers like I.E, Firefox and chrome.
I know my questions is duplicated and Google gave me enough links for solution but I can't seem to fix my issue. I am using .NET 4.5 and Safari version is 5+.