How session tracking can be achieved, if your browser
doesn't support cookies (or) if cookies are disabled?
Answers were Sorted based on User's Feedback
Answer / 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 |
What is the difference between sendredirect() and forward() in a servlet?
How can the session in servlet be destroyed?
Hi Frieds, I am new to servlet why to use servlet in webapplication. what i know is " use servlet as a controller in mvc and to implemnent business logic . is it correct ? One more thing reason for implementing business logic with servlets , why not jsp.
Difference between GET and POST?
Where do you define dispatcherservlet?
Servlet is pure java object or not?
What is war file?
What are the types of protocols supported by httpservlet ?
What is Difference between JavaBeans and taglib directives?
How can the referrer and the target urls be used in servlet?
why business logic written using servlets not in jsp. Jsp used for presentation purpose. serlvet used for coding business logic and controller logic. Reason for using servlets in business logic.
How can I share objects across different sessions?