What is the need of session tracking in HttpServlet ?

Answers were Sorted based on User's Feedback



What is the need of session tracking in HttpServlet ?..

Answer / muthusenthil

As per http protocol no user information is pertained.
every request is considered as a new request and there will
not be any session maintained between requests. so to
maintain users information we have to use session
tracking

Is This Answer Correct ?    14 Yes 0 No

What is the need of session tracking in HttpServlet ?..

Answer / priya

Session is a time period within which a user enters a
webpage,access the data or performs some operations and
quits the page.

Consider the usual example of a shopping cart(which is
widely used to explain session tracking)where a user buys a
book and puts it in the cart, then starts browsing at other
books or check the list of books to buy another book.In
that case, it should be possible to keep track of that user
in the session otherwise it will not be possible to
identify the user and you cannot keep track of that user.

Is This Answer Correct ?    11 Yes 1 No

What is the need of session tracking in HttpServlet ?..

Answer / saikiran

Because of http is an stateless protocal
that don't have a capacity to remember ur information
for that we r tracking by using of
.urlRewriting
.Hiddenform Fields
.Cookies
.HttpSession

Is This Answer Correct ?    7 Yes 1 No

Post New Answer

More Servlets Interview Questions

Explain mvc pattern.

0 Answers  


can v create a constructor 4 servlet?

7 Answers   Satyam,


How can we invoke another servlet in a different application?

0 Answers  


What is called a session?

0 Answers  


Which is better approach among four(HttpSession,cookie,URL Rewriting, Hidden Fields) Session Tracking technic's ? Why ?

3 Answers   L&T,


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

0 Answers   BirlaSoft,


What are the various ways of session supervision in servlets?

0 Answers  


What do you mean by scope object and what are its types?

0 Answers  


Why session tracking is needed?

0 Answers  


What is Request Dispatcher?

1 Answers  


What is servlet interface?

0 Answers  


Which HTTP method is non-idempotent?

0 Answers  


Categories