Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Is that servlet is pure java object or not?

1036


Difference between get and post in java servlets?

980


What do you mean by web applications?

1121


Is dispatcher servlet a singleton?

968


Write a program to show the functionality of doget and dopost method?

1148


When a servlet accepts a call from a client, it receives two objects. What are they?

1192


How to get the actual path of servlet in server?

1173


Explain the steps involved in placing a servlet within a package?

993


How we can create war file in servlet?

1069


What are the advantages of Servlet over CGI?

1093


How can we invoke another servlet in a different application?

1149


What is difference between cookies and httpsession?

1029


What is the importance of init() method in Servlet ?

1039


Once the destroy() method is called by the container, will the servlet be immediately destroyed? What happens to the tasks(threads) that the servlet might be executing at that time?

1209


Explain the jar and war files in servlet?

1044