Explain session tracking in Java Servlet

Explain session tracking in Java Servlet.

- The state of requests for the same user is being maintained by the session of a servlet.

- Session tracking is a mechanism that is tracked and maintained by such requests by the user.

- These sessions are being shared by the servlets and accessed by a client.

- This provides a convenience to the web applications that uses multiple servlets.

- For example a shopping cart application uses the session tracking, which tracks the requests of the user for various mobile devices. In java servlets this task is being maintained by:

       Cookies, URL rewriting, session objects(HttpSession) and hidden fields.

Explain session tracking in servlets.

- The states of a series of requests from a single user, for a stipulated period of time, are performed by the mechanism called session tracking.

- Sessions can be shared among the servlets which is a convenient for a web application that uses multiple servlets.

- HTTP is a stateless protocol.

- The server cannot remember the previous transactions.

- To identify all the requests from one user, the web server is to remember every user.

- To overcome the problem user’s information is being managed by implemented by Cookies, URL rewriting, hidden fields.

- A session i.e., a user’s requests are tracked by – obtaining a session object, storing and retrieving data from the HttpSession object and invalidate the session after a user completes flushing the requests.
Describe Servlet collaboration
Servlet collaboration is all about sharing information among the servlets..
Describe the basics of Servlets
Servlets are java classes which run on a web server. The results produced by the servlet are viewed on a remote web server....
What are the important items in javax.servlets. Explain them
Servlets : Defines all the methods that a servlets implements. Servlets receives and responds to a request from the web clients.....
Post your comment