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
If some new data has entered the database, explain how can a servlet refresh automatically?
What is difference between the HTTP Servlet and Generic Servlet? Explain about their methods and parameters?
How does tomcat servlet container work?
Explain load on start-up and its importance?
What is the difference in between the httpservlet and generic servlet?
List the Different types of servlet?
Define context initialization parameters.
Explain the difference between a web server and a web container?
What is the purpose of inter-servlet communication?
What is a deployment descriptor?
how many jsp scripting elements are there and what are those?
What exactly is a servlet?
Where do you define dispatcherservlet?
What is servlet invoker?
Explain the difference between generic servlet and http servlet?