Try our conversational search powered by Generative AI!
AI OnAI Off
if (Page.User.Identity.IsAuthenticated)
to decide whether to redirect or not?
If I use this line its as if it takes too long and the result is false even if I put the correct user/pass in. On next page reload I am authenticated so the same code will return true.
Is there a better way?
Same result if I use this code too:
UnifiedPrincipal.Current.Identity.IsAuthenticated