Solved

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

Posted on 2009-05-11
3
309 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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.

777 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