User.Identity.Name works in IE but it does not work in Chrome or firefox
I have a website with windows authentication. In web.config, I have
written code as below:
<authentication mode="Windows">
</authentication>
<authorization>
<deny users="?" />
<allow users="*"/>
</authorization>
In IIS 7.5, I have enabled anonymous authentication and windows
authentication but when I load the page in IE I am getting value in
User.Identity.Name and Request.IsAuthenticated is true, but if same page
is run from firefox or chrome, Request.IsAuthenticated is false and
User.Identity.Name is empty string.
Is there any setting missing?
No comments:
Post a Comment