views:

80

answers:

1

Hello guys,

User.Identity.Name returning empty string in Firefox. In IE it's working fine. I have an ajax call to controller and used the Identity to fetched data from DB. Problem is it will always return an empty string in Firefox. I already assigned cookie name in my webconfig under .

Your reply is greatly appreciated

Very Best,

A: 

Samer,

What authentication method are you using?

Forms Authentication Windows Authentication No Authentication

If you're using Forms Authentication, there are some steps you have to go through before User.Identity.Name is populated. Also, Firefox doesn't like sending the currently authenticated user (in Windows) to the web server. There is a setting you can change so it will, but depending on your deployment, that may not be feasible.

Dylan

Dylan Vester
Thanks for the quick reply. Yes i already have the Form Authentication work on my pages. The only problem I have is in Firefox that If I do ajax request using Jquery the User.Identity.Name is always empty.
samer