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

Which method of the httpservletrequest object is used?

576


What is java servlet?

616


Explain the difference between a web server and a web container?

522


Which are the different ways you can communicate between servlets?

536


Which method is called when reference variable is passed in system.net?

1839






Is it good idea to create servlet constructor?

750


What is the difference between servlet and filter?

536


How do servlets work?

540


Is it possible to have a constructor inside the servlet?

555


What are some advantages of storing session state in cookies?

603


What is the purpose of requestdispatcher interface?

622


What do you mean by the servlet chaining?

554


When Servlet is unloaded?

632


Define declaration.

624


What is servlet and its life cycle?

576