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 are different methods of session management in servlets?

768


What do you mean by session tracking?

659


What is life cycle of Servlet?

600


What is a generic servlet?

511


Write all the phases defined in servlet life cycle?

577






List some life cycle methods of a servlet.

577


Can we use the constructor, instead of init(), to initialize servlet?

572


Define the servlet mapping.

540


Describe in brief RequestDespatcher?

582


What do you mean by request dispatcher in servlet? Also explain its methods.

601


What are the drawbacks of cgi?

556


What is a servlet?

599


How do cookies work in servlets?

570


What methods do you use in servlet - applet communication?

574


What are the life cycle methods of the servlet?

570