Only one user can log in at a time

test12345

New Member
I have a class declaration, \[code\]public abstract class CompanyHttpApplication : HttpApplication\[/code\]In the \[code\]CompanyHttpApplication\[/code\] I have\[code\]public static CompanyHttpApplication Current{ get { return (CompanyHttpApplication)HttpContext.Current.ApplicationInstance; }}\[/code\]and\[code\]public CompanyProfileInfo Profile{ get { return profile ?? (profile = ProfileManager .FindProfilesByUserName(ProfileAuthenticationOption.Authenticated, User.Identity.Name).Cast<CompanyProfileInfo>().ToList().First()); } private set { profile = value; }}\[/code\]Whenever I access the user:\[code\]CatapultHttpApplication.Current.Profile.UserName\[/code\]it gets whoever is logged in last. I understand why (because it's in the application instead of the session), but I don't know how to change it. What can I do to change it so it uses the session instead of the application?
 
Back
Top