Session Tracking in Servlet


Prev Tutorial Next Tutorial

Session Tracking in Servlet

Session is the conversion of user within span of time. In general meaning particular interval of time.

Tracking is the recording of the thing under session.

Session Tracking is remembering and recording of client conversion in span of time. It is also called as session management.

If web application is capable of remembering and recording of client conversion in span of time then that web application is called as stateful web application.

Why need Session Tracking ?

  • Http protocol is stateless, to make stateful between client and server we need Session Tracking.
  • Session Tracking is useful for online shopping, mailing application, E-Commerce application to track the conversion.
  • Http protocol is stateless, that means each request is considered as the new request. You can see in below image.
http protocol

Why use Session Tracking ?

To recognize the user It is used to recognize the particular user.

Why Http is design as stateless protocol ?

If Http is stateful protocol for multiple requests given by client to web application single connection will be used between browser and web server across the multiple requests. This may make clients to engage connection with web server for long time event though the connection are ideal. Due to this the web server reach to maximum connections even though most of its connection are idle. To overcome this problem Http is given as stateless.

Session Tracking Techniques

Servlet technology allows four technique to track conversion, they are;

  • Cookies
  • URL Rewriting
  • Hidden Form Field
  • HttpSession
session tracking
Prev Tutorial Next Tutorial


Buy This Ad Space @$20 per Month, Ad Size 600X200 Contact on: or 9999595223

Pure VPN Privide Lowest Price VPN Just @ $1.65. Per Month with Non Detected IP Lowest Price Non Detected IP VPN

Magenet is best Adsense Alternative here we earn $2 for single link, Here we get links ads. Magenet

For Projects 9999595223

Google Advertisements

Buy Websites 9999595223

Buy College Projects with Documentation Contact on whatsapp 9999595223. Contact on: or 9999595223 Try this Keyword C++ Programs