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


Please Help Members By Posting Answers For Below Questions

What is the difference between using getSession(true) and getSession(false) methods?

574


What is life cycle of Servlet?

607


How do I support both get and post from the same servlet?

698


What are the phases of the servlet life cycle?

611


What are the steps that are involved in using the httpservlet class?

576






What are the exceptions thrown by servlets? Why?

625


Define servlet mapping?

660


What do you mean by cgi and what are its drawbacks?

533


how many jsp scripting elements are there and what are those?

542


How is an application exception handling is done using a servlet?

541


How can you run a servlet program?

601


What is the use of attribute in servlets?

542


What do you mean by interservlet communication?

587


Can we fetch the attributes related to a servlet on a different servlet?

638


How many servlet objects are created?

567