title: Spring MVC: HTTP session management "equivalent"
body: <p>I come from languages like PHP or ColdFusion: if I wanted to save something in user's http session I act like this:</p>
  
  <pre><code>SESSION["foo"] = "bar"
  </code></pre>
  
  <p>Now I am in a Spring MVC environment.</p>
  
  <p>For example, inside a Controller method, how can I save a variable in session?</p>
  
  <p>Someone told me that a <em>session-scoped bean</em> would get the job.</p>
  
  <p>Can you help me with a trivial code snippet?</p>