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

What are the two important api's in for servlets?

590


What is setattribute in servlet?

560


What is the use of java servlet api?

604


I have a requirement Here we have a ResultSet object that will contain 50 records i need to print those recors in to a webpage(i.e; view according to MVC architectures that mybe servlet or jsp) . Here i need to print the records 10 per page that is 1 to 10 in page one and 11 to 20 in page two like remaining will be appeared in other pages we need to display those page numbers whenever we click on that page number we will go to that page and display 10 records like we will display 5 pages it is like this << 1 2 3 4 5 next >>

2534


Which is the methods of generated servlet?

686






Can we refresh servlet in client and server side automatically?

598


What is a servlet context object?

628


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

573


Explain how to improve Servlet Performance?

602


What is servlet in web technology?

580


What are the functions of Servlet container?

611


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

541


What is meant by session? Tell me something about httpsession class?

605


Why is http protocol called as a stateless protocol?

537


What are the important functions of filters?

601