views:

145

answers:

1

I'm using asp.net configuration manager and the standard login control to allow users to logon. What I'm wondering is can I find out what user is currently logged in from the business layer or do I need to pass it in from the UI?

A: 

try this:

HttpContext.Current.User.Identity.IsAuthenticated

//OR you may put user into session and access it like this

HttpContext.Current.Session["user"]
TheVillageIdiot