Answer Posted / sandeep m
Session data is stored at server side in case of
HttpSession. Server creates a session object and stores at
server side and communicates session id to client for
further communication to be statefull. session id will be
sent to server along with further requests from the client.
In case of Cookies client maintains the session information
and sends the cookie object to server for each request. The
cookie object will be created by server but maintained by
client.
| Is This Answer Correct ? | 13 Yes | 3 No |
Post New Answer View All Answers
When using servlets to build the HTML, you build a DOCTYPE line, why do you do that?
How to get the actual path of servlet in server?
How to handle exceptions thrown by application with another servlet?
What is a web application and what is it’s directory structure?
What are the important functions of filters?
What is servlet and its use?
Why doesn’t a servlet include main()? How does it work?
What is the directory structure of a war file?
What is meant by a servlet?
Whether thread can be used in servlets?
What do you mean by annotations in servlet?
What are session variable in servlets?
What exactly are the functions of servlet?
What’s the difference between genericservlet and httpservlet?
Which is better jsp or servlet?