what are the way a client can be tracked?

Answer Posted / sonam

Client can be tracked by the means of session management or session tracking.consider a scenario :
-user requests a login page to the servlet.
-servlet loads the page.
-user enter the info and if correct given access.
-now if another servlet that also only allows authorizd users to view info.this servlet wil not know whether the same user is successfully logged in and as such the user wil have to login again.
There are 4 ways of achieving session management : 1.URL rewriting 2.Cookies 3.Session objects 4.Hidden fields

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the life cycle of a servlet?

781


Write a command to get actual path of a servlet to the server?

538


What do you mean by web applications? Explain web application directory arrangement?

536


What if we pass negative value in load-on-startup?

798


Explain servlet events?

561






What is preinitialization of a servlet?

578


What does the term localization refer to?

580


What is servlet lazy loading?

691


What are the exceptions thrown by servlets? Why?

621


What is the web server used for running the Servlets?

579


Why is init() method is used in servlets?

554


Can filter be used as request or response?

540


What is meant by servlet? What are the parameters of the service method?

570


What is the difference between the include() and forward() methods?

567


What is the major difference between servlet and applet?

540