What is the need of session tracking in HttpServlet ?
Answer Posted / priya
Session is a time period within which a user enters a
webpage,access the data or performs some operations and
quits the page.
Consider the usual example of a shopping cart(which is
widely used to explain session tracking)where a user buys a
book and puts it in the cart, then starts browsing at other
books or check the list of books to buy another book.In
that case, it should be possible to keep track of that user
in the session otherwise it will not be possible to
identify the user and you cannot keep track of that user.
| Is This Answer Correct ? | 11 Yes | 1 No |
Post New Answer View All Answers
What is cgi and what are its drawbacks?
Write a command to get actual path of a servlet to the server?
How native code can be used in a servlet?
What are the different session tracking techniques?
What do you mean by the servlet chaining?
What is the difference between the getrequestdispatcher(string path) method of javax.servlet.servletrequest interface and javax.servlet.servletcontext interface?
What is the servletconfig object?
What are the kinds of http requests?
How to make sure a servlet is loaded at the application startup?
Name the different ways of session tracking.
Write a servlet to upload file on server.
Which exception is thrown if the servlet is not initialized properly?
Why servlet is mostly used?
How do cookies work in servlets?
What's the servlet interface?