logo

Session Tracking In Servlets


Show

Session means a certain interval of Time.

Session Tracking is a manner to preserve the nation (data) of a person. It is likewise called consultation control in servlets.

Http protocol is stateless so we want to preserve the usage of consultation monitoring techniques. Each time a person requests to the server, the server treats the request as a brand new request. So we want to preserve the nation of a person to apprehend a unique person.HTTP is stateless which means every request is taken into consideration as the brand new request. It is proven withinside the discern given below:

Why to use Session tracking?

To understand the user It is used to understand the unique user.

Session Tracking Techniques

There are 4 strategies utilized in Session tracking:

  • Cookies
  • Hidden Form Field
  • URL Rewriting
  • HttpSession