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

What is page scope?

0 Answers  


i need the source code for opening a word document in java

0 Answers  


How to forward a request to another source?

0 Answers  


Explain what is jsp ?

0 Answers  


How did you implement caching in jsp?

0 Answers  






How to find out the name of the http method using jsp el?

0 Answers  


What is translation phase?

0 Answers  


How can I prevent direct access to a jsp page from a browser?

0 Answers  


What is the advantage of using getProperty action, as compared to the accessor method?

0 Answers  


How can we create jsp custom tags?

0 Answers  


Explain the action.

0 Answers  


What are context initialization parameters?

0 Answers  


Categories