blaznspadz
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\]I really have no idea what I'm doing with sessions and applications. I am new to asp.net and the programmer who made this has left the project.In the project, they used \[code\]Current\[/code\] to get all \[code\]Profile\[/code\]s. This leads to having only one user able to log in during the entire application life cycle, when we need to have them in sessions. The problem I have is that I don't know how to move into sessions. I added this:\[code\] public static HttpSessionState CurrentSession { get { return HttpContext.Current.Session; } }\[/code\]but when I try to replace Current with CurrentSession, it doesn't recognize Profile. Can anyone point me in the right direction?