Does User.Identity.Name get its value from a cookie or from the datasource?

I have a web page and service that is hit alot and I need to know if the user is signed in and which user is signed in.  I don't want to hit the database every single time so I was hoping I could extract this from the cookie while in c# code behind?  Can someone please elaborate or point me to some link that does?
joshuadavidleeAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
tillgeffkenConnect With a Mentor Commented:
User.Identity.Name does not query a database. It gets passed to the app by the authentication provider. Safe and well performant.
0
 
CodeCruiserCommented:
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.