title: Java Exception handling and HttpSession
body: <p>As part of exception handling, I want to print data from HTTP session like below:</p>
  
  <pre><code>try{  
      //business logic
  } catch(Exception ex){
      String user = session.get("userId"); //get user from HTTP Session.
      log.info("Exception when processign the user "+user); 
  }
  </code></pre>
  
  <p>My question is do I get the correct UserId for which exception occurred since there will be mulitple threads updating the session?</p>