title: setting session timeout in Spring MVC
body: <p>Is there any way of specifying session timeout in Spring? <strong>I can not specify it in web.xml</strong>. As I am using session scope bean in controller as follows </p>
  
  <p>I have configured controller through spring xml files.</p>
  
  <pre><code>class xyzController{
  
       ABCSessionScopeClass objectWhichWillBeStoredInSession;
  }
  </code></pre>
  
  <p>I can not use this either</p>
  
  <pre><code>session.setMaxInactiveInterval(60*60);
  </code></pre>
  
  <p>Is there any other way of doing this. I don't mind setting timeout per session or for all session at the same time.</p>