The case:
I am Developing a SharePoint Project
I am Using External Database With Hibernate As Persistence Layer
I Have Custom User (External Database) at Common Projects
This Current User Must Available at all Layer and must Filled before Any Request
Problem:
What I need is to find a way to fill this object (Current User) before Any Request so it cans Accessible from all layers without any effort like the Following MYContext.Current.CurrentUser
What I make:
I enable Session state For MOSS 2007
I Customize the Global.asax for SharePoint using the default Session_Start(object sender)Like the following
Session["CurrentUSer"]=MyCustomeUserManager.GetUserBySPID();
I make the default Application_BeginRequest(object sender, EventArgs e)like the following :
Thread.CurrentContext.SetProperty for set the Current User
Or Use the
Th ...
Go to the complete details ...