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
Which httpsession object is used to view and manipulate information about a session?
What exactly is a servlet?
How do you define a servlet?
Why is httpservlet declared abstract?
Once the destroy() method is called by the container, will the servlet be immediately destroyed? What happens to the tasks(threads) that the servlet might be executing at that time?
Elucidate servlet attributes and its scope?
Why do we need servlet filter?
Why is it that we can't give relative URL's when using ServletContext.getRequestDispatcher() when we can use the same while calling ServletRequest.getRequestDispatcher()?
What is the difference between CGI and Servlet?
How can we achieve transport layer security for our web application?
What are different methods of session management in servlets?
What is the advantage of Servlets when compared with other server side technologies?
What is cookies in servlet with example?
What do you mean by a filter and how does it work?
What is difference between cookies and httpsession?