How session tracking can be achieved, if your browser
doesn't support cookies (or) if cookies are disabled?
Answer Posted / 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 |
Post New Answer View All Answers
Difference between forward() method and sendredirect() method ?
What is the use of send redirect () method?
How would you create deadlock on your servlet?
Why servlet is used as controller ? Not JSP? I want complete explation?
Which java framework is most popular?
Explain Action Servlet?
What is servlet and how it works?
What are the servlet events?
Explain the architechure of a servlet?
Why do we have servlet listeners?
What is cookie? Why is cookie used?
Define the lifecycle for executing a jsp page.
What are the functions of an intercepting filter?
What are the various ways of session supervision in servlets?
List out difference between a JavaBean from a Servlet?