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
Difference between java beans & servlets?
When servlet is loaded?
What is the purpose of requestdispatcher interface?
Can we use threads in Servlets?
Differentiate between get and post?
What is servlet container. how it works?
Why is it that we can't give relative URL's when using ServletContext.getRequestDispatcher() when we can use the same while calling ServletRequest.getRequestDispatcher()?
What are the mechanisms used by a servlet container for maintaining session information?
Which HTTP method is non-idempotent?
What are the differences between forward() method and sendredirect() methods?
Define the lifecycle for executing a jsp page.
How can an existing session be invalidated?
Can servlet have a constructor ?
What are different ways for authentication of servlet?
What do you mean by cgi in servlet?