title: What is session management in Java?
body: <p>I have faced this question in my Interview as well. I do have many confusion with Session Scope &amp; it management in java.</p>
  
  <p>In web.xml we do have the entry :</p>
  
  <pre><code>&lt;session-config&gt;
          &lt;session-timeout&gt;
              30
          &lt;/session-timeout&gt;
  &lt;/session-config&gt;
  </code></pre>
  
  <p>What does it indicate actually ? Is it scope of whole project ?</p>
  
  <p>Another point confusing me is how can we separate the session scope of multiple request in the same project? Means if I am logging in from a PC &amp; at the same time I am logging in from another PC, does it differentiate it ?</p>
  
  <p>Also, another confusing thing is the browser difference. Why does the different Gmails possible to open in different browsers ? And Gmail can prevent a session from Login to Logout. How is it maintained with our personal web ?</p>