title: Java : How to deal with multiple sessions in the servlet
body: <p>I am new to Java EE. I have a site which requires a user to log in, and after the user logs in I would like the user to see his/her own item (e.g: shopping cart).</p>
  
  <p>So that means I have to use a session to accomplish that. But how do I deal with multiple sessions?</p>
  
  <p>For example multiple users login to the system as well as to the same servlet? However, can I keep multiple sessions in one servlet? Do I keep a record of each of them? How does it work? </p>
  
  <p>Can someone give an example please ?</p>