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 are different methods of session management in servlets?
What do you mean by session tracking?
What is life cycle of Servlet?
What is a generic servlet?
Write all the phases defined in servlet life cycle?
List some life cycle methods of a servlet.
Can we use the constructor, instead of init(), to initialize servlet?
Define the servlet mapping.
Describe in brief RequestDespatcher?
What do you mean by request dispatcher in servlet? Also explain its methods.
What are the drawbacks of cgi?
What is a servlet?
How do cookies work in servlets?
What methods do you use in servlet - applet communication?
What are the life cycle methods of the servlet?