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 is the difference between Server and Container?
Explain the architechure of a servlet?
A client sends requests to two different web components. Both of the components access the session. Will they end up using the same session object or different session ?
Explain the features are in servlet 3?
How native code can be used in a servlet?
How to get ip address in jsp login page and how to validate like 127.1.0.1 all should not be greater than 255
Can a jsp be called using a servlet?
How to commuincate between an applet and a servlet?
What is difference between get and post method?
Explain jsessionid and when is it created?
What is MIME Type?
What is meant by servlet? What are the parameters of the service method?
Difference between doget and dopost?
What are the functions of Servlet container?
What do you mean by scope object and what are its types?