where the session data will stored?

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


Please Help Members By Posting Answers For Below Questions

Write a simple servlet program to print the contents of html.

561


What is difference between PrintWriter and ServletOutputStream?

781


What do you mean by request dispatcher in servlet?

622


What is the difference between sendredirect() and forward() in a servlet?

531


What is the capacity the doget can send to the server?

588






When a servlet accepts a call from a client, it receives two objects. What are they?

778


What are the uses of servlet and what is servlet chaining?

569


Should I override the service() method?

676


What is the use of httpservletresponsewrapper?

541


Which event is fired at the time of project deployment and undeployment?

798


Why the concept of single thread model interface is used?

560


What are the different methods involved in the process of session management in servlets?

675


Explain servlet.

579


How do you communicate in between Applets and Servlets?

601


Define servlet mapping?

669