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

Life Cycle of servlets?

4 Answers   3i Infotech,


What is servlet in web technology?

0 Answers  


What is the use of servlet wrapper classes?

0 Answers  


Can a servlet be called by passing its name as a parameter in the URL?

1 Answers   iFlex,


What is the use of httpservletresponsewrapper?

0 Answers  






Explain url encoding?

0 Answers  


without session Id can we do any operations like add,update,edit,delete. I saw Session id is loaded for edit and delete action not for add .so am asking this

1 Answers   Syntel,


Explain the servlet context.

0 Answers  


java.lang.IllegalArgumentException: The path of an ForwardConfig cannot be null while working with struts it displayed pls very ungent

3 Answers   IBM,


What's the difference between authentication and authorization?

0 Answers  


Difference between web container & web server........... Difference between web server & application server?????????

8 Answers   TCS,


Explain in brief the directory structure of a web application?

0 Answers  


Categories