title: Set User Object in session using Spring
body: <p>I would like to set the <code>User</code> Object which contains the details of the user into session in my Spring Application.</p>
  
  <p>I would like to use this session object when I would like to retrieve the details of the logged in user on various JSP pages.</p>
  
  <p>I am using Spring 3 and Spring Security 3</p>
  
  <p>I would like to set the User object in the session from my custom authentication class which is not a controller</p>
  
  <p>How can I achieve this?</p>