title: How to make session in Java?
body: <p>I need make sessions in Java web application.<br>
  I found that sesstion makes in servlet calass by method <code>getSession()</code>.<br>
  But i have a question about session parameters. For example i send to server login/pass and save it into session atributes. Okey. Next time i do something on client and send new params to server. Where i gonna send it? In another or same and i gonna use <code>if else</code> for handle params like this?</p>
  
  <p><img src="https://i.stack.imgur.com/EndLe.jpg" alt="enter image description here">
  Another question: How to use params which i put in session(login/pass) in another classes?</p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>I read about <a href="http://www.developer.com/java/using-the-httpsession-object-of-the-servlet-api.html" rel="nofollow noreferrer">sessions</a>. And have new question. How to use session params in enother class. I mean after login i send new params on server, read it in servlet and want to take a login/pass from session and send it with new params into another class.</p>