Search code examples
asp.net-mvclcid

ASP.NET MVC LCID and Sessions


i have to short questions on ASP MVC. Where is the best place for setting on Session.LCID ?

Thanks


Solution

  • In three places:

    Upon login, inside the controller once successfully authenticated.

    When they change their culture setting explicitly.

    Before they are logged in you would base it on browser or ip address and set in a base controller, reading from the session first to check if it's been set above.