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
If my browser does not support cookie, and my server sends a cookie instance what will happen?
Write a command to get actual path of a servlet to the server?
Why servlet is mostly used?
What is Client-Server Computing?
How can we achieve transport layer security for our web application?
Explain the custom jsp tags and the beans.
Explain the working of service() method of a servlet.
Which is better jsp or servlet?
How we can get ip address of client in servlet?
When to use doget() and when dopost()?
What is servlet looping or chaining?
What is ServletConfig object?
How do you define a servlet?
What is the use of java servlet api?
How can we create deadlock situation in servlet?