IsInRole Works only when user sign in

Posted by Costa on Stack Overflow See other posts from Stack Overflow or by Costa
Published on 2010-05-18T11:05:02Z Indexed on 2010/05/18 11:10 UTC
Read the original article Hit count: 181

Filed under:

Hi

Why HttpContext.Current.User.IsInRole("Customer") returns false if the user is not logged in, I think because user is considered anonymous is this case, Correct?

Thanks

© Stack Overflow or respective owner

Related posts about ASP.NET