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
Which method of the httpservletrequest object is used?
What is java servlet?
Explain the difference between a web server and a web container?
Which are the different ways you can communicate between servlets?
Which method is called when reference variable is passed in system.net?
Is it good idea to create servlet constructor?
What is the difference between servlet and filter?
How do servlets work?
Is it possible to have a constructor inside the servlet?
What are some advantages of storing session state in cookies?
What is the purpose of requestdispatcher interface?
What do you mean by the servlet chaining?
When Servlet is unloaded?
Define declaration.
What is servlet and its life cycle?