Tuesday, April 17, 2012 3:43 AM
I am using SharePoint 2010 site with claims based authentication, this site has some users who use the Forms and some uses Windows authentication. Because of the business need to I am bound to populate the User Session like UserID, DepartmentID etc. once user is successfully authenticated. Currently I am populating this session in a custom user control which is hosted in a custom master page that is applied to this site. But this approach would only work post authentication if user is getting redirected to the page which has my custom master page assigned, if he is redirected to any layouts page (which uses default V4.master) then above logic would not work.
I would like to know if there is correct way of populating the user session variables like in Global.ascx, HttpModule..
Thanks in advance
Tuesday, April 17, 2012 5:24 AMFor me, implementing it in a HttpModule smees like the most logical way to do it. As you've said yourself, the master page approach is flawed and you can't have claims info populated most of the time.
- Marked As Answer by Ajay.Sawant Tuesday, April 17, 2012 1:23 PM
Tuesday, April 17, 2012 1:27 PM
Thanks for your input, Can you please help me with some article that could help me achive this or could you suggest a method of httpHandler that could help me with this?