what is a session object?

Answer Posted / shakir khan

session is an object used by the servlet to track a user
interaction with web application across multiple HTTP
requests.

session is a collection or sequence of HTTP requests over a
period of time between client and webserver.when a session
is created,its life time is also set,defalut being 3 minute.
Upon expiration,session is destroyed,its resources returned
back to the engine.sessions can be prematurely destroyed by
the developer.

If a session is configured to last for 30 min.Upon
expired,client will need to start a new session.Each
session requires unqiue session id that can be used by the
client.

Is This Answer Correct ?    10 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Name the packages that work with servlet?

537


What is servlet api used for conneting database?

692


How do you invoke a servelt?

613


When servlet is loaded?

585


What is the process to implement doget and dopost methods?

540






How to upload a file to the server using servlet?

526


What's the difference between authentication and authorization?

541


Explain load on start-up and its importance?

590


What are life cycle methods of a servlet?

583


Explain the working of service() method of a servlet.

496


What is the difference between the servlets and cgi programs?

541


Which method of the httpservletrequest object is used?

557


Can a jsp be called using a servlet?

578


What is the servletconfig object?

522


What do you mean by annotations in servlet?

576