Solved

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

Posted on 2009-05-11
3
307 Views
Last Modified: 2012-05-06
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?
0
Comment
Question by:joshuadavidlee
3 Comments
 
LVL 9

Accepted Solution

by:
tillgeffken earned 500 total points
ID: 24361801
User.Identity.Name does not query a database. It gets passed to the app by the authentication provider. Safe and well performant.
0
 
LVL 83

Expert Comment

by:CodeCruiser
ID: 24364523
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
This video discusses moving either the default database or any database to a new volume.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now