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
Is dispatcher servlet a singleton?
The code in a finally clause will never fail to execute, right?
How can we include static files in the jsp page?
How is a servlet implemented in code?
What is session tracking?
What do you mean by servlet context?
How can we implement a jsp page?
What are the different session tracking techniques?
What is servlet api used for conneting database?
Which http method is said to be non-idempotent and idempotent?
What is the difference between servlet and jsp?
How do you define a servlet?
How to make sure a servlet is loaded at the application startup?
What is the use of java servlet api?
How to notify an object in session when session is invalidated or timed-out?