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 lazy loading and what is Generic Servlet Class?

846


Explain the custom jsp tags and the beans.

812


When Servlet is unloaded?

865


What is a web application and what is it’s directory structure?

840


Explain url encoding in servlet?

824


Explain the jar and war files in servlet?

826


How to find whether a parameter exists in the request object?

909


Hello, My project requirement is like I need to create a web page using MVC pattern. I hava a bean class, jsp page, servlet, service and dao. My jsp has two fields. One is dropdown list. The option values has to get populated from the database table. The other one is a text box and its value has to come from database table. As of now I have defined the fields in bean class, got the values from database using arraylists in dao class and I called this from service class. Can anyone please tell me the workflow of how the servlet will get this arraylist and populate the arraylist values as dropdown options in jsp page? Also I would like to know the role of bean class in MVC pattern? Thanks in advance!

2036


Is java servlet still used?

785


What do you mean by web applications?

869


What is load-on-startup in servlet?

827


How to notify an object in session when session is invalidated or timed-out?

856


What are different ways for authentication of servlet?

753


What are the jobs performed by servlets?

801


What is api in servlet?

775