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 difference between cookies and httpsession?
What exception should be thrown when servlet is not properly initialized?
Which http method is said to be non-idempotent and idempotent?
Can we use threads in Servlets?
Where do you define dispatcherservlet?
What is the type of method for sending request from http server?
How to read request headers from servlets?
How servlets are deployed in java?
What is the difference between context parameter and context attribute?
What is servlet configuration?
If servlet receives multiple requests, how many objects will it create?
How to get the IP address of client in servlet?
How to get the current httpsession object?
Why jsp is better than servlet?
How we can get ip address of client in servlet?