How session tracking can be achieved, if your browser
doesn't support cookies (or) if cookies are disabled?
Answers were Sorted based on User's Feedback
Answer / rambabu gonela
URL rewriting is another way of exchanging session ID (as
part of URL) when clients does not accept cookies (cookies
disabled on browser).
When cookies are disabled on client, client just ignores
the session information on all response headers. The
session?s isNew() method will always return true (Container
keep creating new sessions for each request, unless URL
rewriting used).
If all URLs on webpage is explicitly written with
reponse.encodeURL(String url) method, URL rewriting will
happen automatically if cookies don?t work with the client
(encodeURL method will add session information only when
URLrewriting is turned on i.e, session management depends
on URL parameter).
| Is This Answer Correct ? | 6 Yes | 1 No |
what is the difference between?when we write the code in following manner? class One extends httpservlet { } and class One extends genericservlet { }
What are the different types of servlets?
What is the difference between RequestDispatcher and sendRedirect?-
What are the different session tracking techniques?
What is the difference between sendredirect() and forward() in a servlet?
How values can be passed from HTML page to servlet?
What is connection pooling?
How to pass session values from one servlet container to another servlet container? or how can we get session values of one container in another container?
How would you create deadlock on your servlet?
What is done after deploying a war file and before client gives a request
What is the use of welcome-file-list?
How does Cookies work in Servlets?