what is a session object?

Answers were Sorted based on User's Feedback



what is a session object?..

Answer / guest

session object is used to maintain a user session related
information on the server side. you can store,retrieve and
remove information from a sessoion object according to ur
program logic.A session object created for each user
persists on the server side,either until user closes the
browser or user remains idle for the session expiration
time,which is configurable on each server.

Is This Answer Correct ?    17 Yes 2 No

what is a session object?..

Answer / 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

More Servlets Interview Questions

Hi............ When i am started the tomcat server it started. but it not load the jar files wht we deploving file.suppose we load the wapp folder in webapps. At running time it show the below error in tomcat server INFO: validateJarFile(C:\Program Files\Apache Software Foundation\Tomcat 5.0\web apps\wapp\WEB-INF\lib\servlet-api.jar) - jar not loaded. See Servlet Spec 2.3, s ection 9.7.2. Offending class: javax/servlet/Servlet.class How to slove this problem in my system. plz give answer for this problem.

5 Answers  


How does tomcat servlet container work?

0 Answers  


when you comppile the servlet is it neccesary to restaet the tomcat server?

6 Answers   HCL,


What is DSN and System DSN and what is the difference between them?

2 Answers  


What is a generic servlet?

0 Answers  






Explain the differences between jsp and servlet.

0 Answers  


Whether thread can be used in servlets?

0 Answers  


Hi Frieds, I am new to servlet why to use servlet in webapplication. what i know is " use servlet as a controller in mvc and to implemnent business logic . is it correct ? One more thing reason for implementing business logic with servlets , why not jsp.

4 Answers  


What do you mean by filter in servlet?

0 Answers  


What is servlet interface?

0 Answers  


How do you track a user session in servlets?

3 Answers  


How do you invoke a Servlet? What is the difference between doPost method and doGet method?

0 Answers  


Categories