Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...


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



How session tracking can be achieved, if your browser doesn't support cookies (or) if cookies..

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

How session tracking can be achieved, if your browser doesn't support cookies (or) if cookies..

Answer / vinay

you can create form hidden fields also

Is This Answer Correct ?    5 Yes 0 No

Post New Answer

More Servlets Interview Questions

What is the GenericServlet class?

0 Answers  


Explain the concept of ssi ?

0 Answers  


What is context in servlet?

0 Answers  


What are the features added in Servlet 2.5?

0 Answers  


What is the difference between Servlets and Applets?

0 Answers  






What are the objects involved when a servlet receives a call from client?

0 Answers  


What are the advantages of cookies?

0 Answers  


What is java servlet?

0 Answers  


why are extending GenericServlet and why are extending HttpServlet explain?

7 Answers  


What's the use of servletcontext?

0 Answers  


How can the session in servlet be destroyed?

0 Answers  


What is generic servlet class?

0 Answers  






Categories