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
What is the difference between using getSession(true) and getSession(false) methods?
What is life cycle of Servlet?
How do I support both get and post from the same servlet?
What are the phases of the servlet life cycle?
What are the steps that are involved in using the httpservlet class?
What are the exceptions thrown by servlets? Why?
Define servlet mapping?
What do you mean by cgi and what are its drawbacks?
how many jsp scripting elements are there and what are those?
How is an application exception handling is done using a servlet?
How can you run a servlet program?
What is the use of attribute in servlets?
What do you mean by interservlet communication?
Can we fetch the attributes related to a servlet on a different servlet?
How many servlet objects are created?