what is session tracking?what are types of session
tracking ?and when to cookies,when to use
sessionmanagement,whent use url rewriting technique,plz
explain briefly?

Answer Posted / santosh kabir

Session is the time spent and activities done by user since he connects to a site till he logs out or glosses browser. Sometimes the websites need to carry some important user data and other information through multiple pages, while user is working on the site.
This handling or tracking of information is called Session Tracking. For tracking session one can use following techniques.
1. Using Session object on Server : Here programmer can store information in special server side object called Sessiin. The data is stored in the form if collection of name-value pairs. e.g. name:userid , value : cooljohn.
2./Using cookies : Information can be saved on user machine as a collection of name- value pair (each pair called as a cookie). Every request to next page on the web site carries cookies to server. Server can read, process and write new cookies and send back to client machine. If cookies are disabled on client machine ( for safety , privacy purpose) this method fails.
3. Hidden elements : One can use HTML hidden elements to store and pass information to further pages for tracking user session.
4. URL rewriting : Here small chunk of data can be encrypted and passed from one page to other for tracking user activities.
The best and most commonly bused method is Session object.

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain load on start-up and its importance?

583


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

667


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

790


What are some disadvantages of storing session state in cookies?

581


Which interface should be implemented by all servlets?

685






Explain mvc pattern.

582


Is tomcat a servlet container?

562


What is the inter-servlet communication?

687


Difference between httpservlet and generic servlets?

598


What is servlet? Explain

566


Explain the difference between servletconfig and servletcontext in servlet?

559


When jsessionid is created?

595


What is the type of method for sending request from http server?

586


What is cookies in servlet with example?

512


What is servlet mapping?

590