Answer Posted / sandeep m
Http Protocol is stateless protocol. Hence server cannot
identify the request is from same client or different.
Hence server can treat every request as new request and may
ask for authentication for each request.
Hence for server to remember client and to respond in an
interactive way server needs to remember the client and its
activities. For which javax.servlet.http.HttpSession
interface is provided. Which helps in session tracking of
client requests.
HttpSession is one of the 4 ways of session tracking
mechanisms.
| Is This Answer Correct ? | 44 Yes | 3 No |
Post New Answer View All Answers
What is the life-cycle of servlets?
What is the difference between Servlet Request and Servlet Context when calling a Request Dispatcher?
When servlet is loaded?
How do you communicate in between Applets and Servlets?
What is cgi?
What are sessions in servlets?
What is the process to implement doget and dopost methods?
When a client request is sent to the servlet container, how does the container choose which servlet to invoke?
Can filter be used as request or response?
What is SingleThreadModel interface?
Explain how does JSP handle run-time exceptions?
What is the difference between the include() and forward() methods?
Can you refresh servlet in client and server-side automatically?
request parameter how to find whether a parameter exists in the request object?
What is the servletconfig object?