ASP.Net Membership and Forms Auth: User.Identity.IsAuthenticated is true, but GetMembership() and Identity.Name return null?

Turns out this was total PEBKAC on my part. What I didn't notice was that the emailAddress string was null; and had set the auth cookie with the username null; causing the issues described.

I'm working with ASP.Net Membership with FormsAuth and have run into a strange problem. The returnUrl variable is passed to a meta refresh tag on the page's HTML, so the redirect is client side. I did this to make sure the auth cookie was set in the browser before redirecting.

The returnUrl is a page I setup for debugging purposes. When I visit the page, IsAuthenticated is true, but the user and the Indentity.Name values are null. I authenticated and set the auth cookie; so why isn't the user info available?

Any constructive input is greatly appreciated.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions