Introduction to Session Management in Servlet | Advanced Java

Session Management

In server-client architecture, http is a stateless protocol. That means http can't remember from which user the requests are coming to the server. Here every request is treated as a new request. Since http is stateless so we need to maintain the state of user. That means when multiple requests are sending from a particular user(client) to the server then the server is responsible to know that particular user. So in which way the server is knowing or recognizing a particular user, that is session management. So it is a technique in which the server is maintaining the state of an user.


There are four techniques which are used for session management technique, such as:

  • • Cookies
  • • HttpSession
  • • Hidden Form Fields
  • • URL Rewritting

About the Author



Silan Software is one of the India's leading provider of offline & online training for Java, Python, AI (Machine Learning, Deep Learning), Data Science, Software Development & many more emerging Technologies.

We provide Academic Training || Industrial Training || Corporate Training || Internship || Java || Python || AI using Python || Data Science etc





Next