what is session tracking?what are types of session
tracking ?and when to cookies,when to use
sessionmanagement,whent use url rewriting technique,plz
Answers were Sorted based on User's Feedback
Answer / raghunath bj
Session tracking is a techinque where we can track the
number of attempts made by the web browser and as per my
knowledge there are 3 kinds of session tracking mechanisms
1.HttpCookies:we can use HttpCookie to store temporary
2.URL Rewriting:By Using this we can add or append more
information to the session.
3.Hidden form fields:which means we can have hidden field
inside the form and this can be used to store information
about the session.
But one disadvantage with this HiddenFormField is it works
if every page is dynamically generated.
|Is This Answer Correct ?||40 Yes||10 No|
Answer / sachin
Session tracking is a mechanism that servlets use to
maintain state about a series of requests from the same
user (that is, requests originating from the same browser)
across some period of time.
Cookies are a mechanism that a servlet uses to have clients
hold a small amount of state-information associated with
the user. Servlets can use the information in a cookie as
the user enters a site (as a low-security user sign-on, for
example), as the user navigates around a site (as a
repository of user preferences for example), or both.
|Is This Answer Correct ?||45 Yes||16 No|
Answer / makthar basha
HTTP is a "state less" protocol and it does not maintain the
client state, But there exist a mechanism called "Session
Tracking" which helps the servers to maintain the state to
track the series of requests from the same user across some
period of time.
Note:HTTP is a stateless protocol that means client(browser)
sends the request to the server and server sends the
response to the client, once the response is returned to
client, server does not remember anything about the client
|Is This Answer Correct ?||24 Yes||2 No|
Answer / ravikiran.chd
session tracking is a mechanism to remembering the client
for a multiple sequence of requests.
1).Hidden Form Fields
cookies are used when u wish to transfer less amount of data
under multiple requests.
session management is used to keep track of the user for
URl rewriting is used to keep track of sessions when cookies
|Is This Answer Correct ?||21 Yes||9 No|
Answer / bhavesh kumar
Session tracking is the mechanism by which developer tracks the user actions across the session.
For example, an online video store must be able to determine each visitor’s sequence of actions. Suppose
a customer goes to your site to order a movie. The first thing he does is look at the available titles. When
he has found the title he is interested in, he makes his selection. The problem now is determining who
made the selection. Because each one of the client’s requests is independent of the previous requests,
you have no idea who actually made the final selection.
Their are 3 types of sesssion mechanism.
1)hidden form fields:-store information about session.
2)cookies:- a small piece of textual information sent by web apllication to client,sored on client and returned by the client for all request to the server.
3)url rewriting:- it is the concept of attaching a unique id.server attact this unique id in each url.when the client send requests it send back this id with the request also which helps the server to identify the client uniquely.
|Is This Answer Correct ?||5 Yes||3 No|
Answer / 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|
when the jsp page is translated to servlet?
How servlets are deployed in java?
Can we use threads in Servlets?
What is the procedure of invoking different servlet in a different application?
Difference between httpservlet and generic servlets?
How is an application exception handling is done using a servlet?
How long do servlets last?
What's the servlet interface?
When using servlets to build the HTML, you build a DOCTYPE line, why do you do that?
How does Cookies work in Servlets?
What is the need of servlet filters?
What is the purpose of inter-servlet communication?