0

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

Thanks

csharpnoob
  • 505
  • 1
  • 9
  • 24

1 Answers1

0

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.

dove
  • 20,469
  • 14
  • 82
  • 108
  • okay, but why show an english page to german, french, etc before login? before login select by browser, then save by login, cookie etc. this doen't anwser the question.again, what is the best way and place in mvc framework to set the session. i dont want the controller because if someone calls another controller direct, i have to spread it over the whole code. must be easier way of doing this – csharpnoob Oct 15 '09 at 22:38
  • base controller is the answer! – csharpnoob Oct 17 '09 at 13:49