Can you tell me why FormsAuthentication.SetAuthCookie(user.Name, false); is not causing Request.IsAuthenticated to be true?
FormsAuthentication.SetAuthCookie(user.Name, false);
Request.IsAuthenticated
Here is my code
You are checking if the user is authenticated. So use:
if (User.Identity.IsAuthenticated)
This will fix the issue and as mentioned set the authentication element in your web.config to Forms and not Windows.