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 HTTP Session ?

6 Answers  


What are different ways for authentication of servlet?

0 Answers  


A client sends requests to two different web components. Both of the components access the session. Will they end up using the same session object or different session ?

0 Answers  


can i call init() method in destroy() method of servlset. ?

5 Answers   IBM,


Explain the servlet context.

0 Answers  






Explain how to improve Servlet Performance?

0 Answers   BirlaSoft,


How do you create a cookie using servlet?

0 Answers  


What do you mean by servlet context?

0 Answers  


Can you use javascript in servlets?

0 Answers  


How to pass session values from one servlet container to another servlet container? or how can we get session values of one container in another container?

6 Answers   IBM, Infosys, TCS,


Difference between GET and POST?

0 Answers  


How can we perform any action at the time of deploying the project?

0 Answers  


Categories