I am allowing the anonymous user to configure their locale by storing their selection in a cookie and then reloading the page. This then gets picked up by the Application_BeginRequest handler of the global.asax file. This is because the user can set the
locale anywhere on the site and the dropdown list is actually on a master page.
Problem is, I want this to be overridden by the locale stored against the user's profile when they login, but I can't think how to do it. Where can I set the culture? the Application_BeginRequest has no way of knowing who the user is (no Page?)...
bbm951
Member
31 Points
50 Posts
Set Culture from User Profile
Jan 18, 2012 06:54 PM|LINK
Hi All,
I am allowing the anonymous user to configure their locale by storing their selection in a cookie and then reloading the page. This then gets picked up by the Application_BeginRequest handler of the global.asax file. This is because the user can set the locale anywhere on the site and the dropdown list is actually on a master page.
Problem is, I want this to be overridden by the locale stored against the user's profile when they login, but I can't think how to do it. Where can I set the culture? the Application_BeginRequest has no way of knowing who the user is (no Page?)...
Help!!!
bbm