Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Get UserID of currently logged user

Status
Not open for further replies.

markros

Programmer
May 21, 2007
3,150
US
I found this thread855-1169200 (which is closed).

How can I get UserID without a trip to a database?

Thanks.

PluralSight Learning Library
 
How are you authenticating and suthorizing the user? Are you using a membership provider?
 
you do know the membership provider is just a respository/fascade to a persistent storage. This will make a remove call (out of process) to the storage, no matter what type of storage it is.

Jason Meckley
Programmer
Specialty Bakers, Inc.

faq855-7190
faq732-7259
 
Not sure the internal workings of the membership provider (so it might already do this), but upon login you could save your userId to a Session. Then you could just retrieve it from that whenever you want.

Regards,

J
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top