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 purpose of inter-servlet communication?
When is the servlet instance created in the life cycle of servlet? What is the importance of configuring a servlet?
describe all about advanced java with presentation
Can we use servlets in JavaScript?
Which interface should be implemented by all servlets?
Explain is servlet mapping?
What is cookies in servlet with example?
Which protocol will be used by browser and servlet to communicate
What is Request Dispatcher?
What is the effective way to make sure all the servlets are accessible only when user has a valid session?
Whats the advantages using servlets over using CGI?
What is pure servlet?