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

What is meant by cookies?

618


Explain web application directory arrangement?

597


Explain url encoding in servlet?

584


What do you mean by request dispatcher in servlet? Also explain its methods.

620


Why do we need servlet filter?

577






How will two or three servlets interact or communicate with each other?

920


What methods do you use in servlet - applet communication?

590


why we should override only no-agrs init() method.

684


What is url encoding and url decoding

597


How printwriter is different from servletoutputstream?

586


List out the difference between ServletConfig and ServletContext?

615


If some new data has entered the database, explain how can a servlet refresh automatically?

745


Whether thread can be used in servlets?

738


Explain is servlet mapping?

590


When Servlet is unloaded?

636