what will happen if we disable cookies in the web page?

Answers were Sorted based on User's Feedback



what will happen if we disable cookies in the web page?..

Answer / siva

I we disable cookies then it will bedifficult for the web
container to manage the session with the help of cokkie.So
we need to use the encodeURL() method for appending the
jsessionid with the URL.

Is This Answer Correct ?    8 Yes 1 No

what will happen if we disable cookies in the web page?..

Answer / devendra dubey

Cookies is used for identify to request.
if we disable the coookies then we cannot identify the
request

Is This Answer Correct ?    3 Yes 1 No

what will happen if we disable cookies in the web page?..

Answer / renuka reddy

if we disable cookies then it cannot help us in the
sessions,so we need to go for any other way,i.e., URL
rewriting.In this URL rewriting we shud specify the
jsessionid in the url itself..this mean we have to do
little more work here,so best way to use cookies

Is This Answer Correct ?    1 Yes 0 No

what will happen if we disable cookies in the web page?..

Answer / sk

cookies are used to retrieve the information from the page
for perticular session instead of storing all data that
user enters.it removes the overhead of saving diff data in
database.

Is This Answer Correct ?    2 Yes 1 No

what will happen if we disable cookies in the web page?..

Answer / govind bisht

if it cookies are disabled it is hard to find the
requesting users details. so it will be hard to maintain
the session for the requesting user.

Is This Answer Correct ?    1 Yes 1 No

what will happen if we disable cookies in the web page?..

Answer / shailendra shukla

It will give the exception saying that: "Illegal for
useBean to use session scope when JSP page declares (via
page directive) that it does not participate in sessions.
If you are not using the bean then it should be OK but most
of the time it will generate the exceptions and container
will not be able to manage the session for the page.

Is This Answer Correct ?    0 Yes 1 No

what will happen if we disable cookies in the web page?..

Answer / deviprasad tummidi

A cookie is, at heart, a small piece of text--a name and
value pair--that the server side generates and sends to the
client. The browser remembers them (nontransient cookies
are stored to your hard disk; Netscape creates a file
called cookies or cookies.txt, for example). The browser
then sends them back to the server on any subsequent visit
to a page from the same site. The Cookie class is part of
the javax.servlet.http package, so any servlet
implementation will include it. The constructor is passed a
name and value, but there are other parameters you can set.
Most important is the expiry time, which is in seconds from
the time you first send it. The default is -1; if the value
is negative, the cookie is not saved to disk; it becomes
a "transient cookie" that exists only until the browser
exits and is then forgotten.

Is This Answer Correct ?    1 Yes 2 No

Post New Answer

More JSP Interview Questions

Explain static method?

0 Answers  


What is jsp exception?

0 Answers  


Give the syntax for jsp comments.

0 Answers  


Mention some important jsp action tags.

0 Answers  


What is the use of Application Object and Session Object in JSP?

4 Answers   HCL, Symphony,






What is jstl?

0 Answers  


Explain the jsp:setProperty action.

0 Answers  


What are the jsp lifecycle phases?

0 Answers  


What is jsp language?

0 Answers  


What is the difference between directive include and jsp include?

0 Answers  


What is use of scriptlet tags in jsp?

0 Answers  


How we can use javascript with jsp pages?

0 Answers  


Categories