Spring MVC: Good place to check for user logged in status?

Discussions

Web tier: servlets, JSP, Web frameworks: Spring MVC: Good place to check for user logged in status?

  1. In Spring MVC, if I have multiple controllers for multiple screens, where is a good place to check if the user is logged in?

    I was considering a singleton bean handled by Spring IoC which have eiter "null" or a UserSecurity object of some sort.
  2. I think interceptor is a good place.
  3. Thank you; I was just reading about Interceptors yesterday and would agree with you.