Determine if a user is logged in.

What is the best / most efficient way to register a user of my .NET web application.

I am currently using Membership.GetUser() != null , but now that I understand that this is related to DB-roundtrip, I am wondering if there is a better way. Could it be HttpContext.Current.User.Identity.IsAuthenticated ?

+4
source share
1 answer

You answered your question. The IsAuthenticated property is the best way to do this.

+6
source

All Articles