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

When does a container initialize multiple jsp / servlet objects?

0 Answers  


Why are jsp pages preferred for creating web-based client program?

0 Answers  


What is jsp technology?

0 Answers  


What are jsp implicit objects?

0 Answers  


What are jsp action tags?

0 Answers  






Java Server Page I can use a function in two ways: Either I declare <jsp:useBean id="myBean" scope="session" class="mypack.mysubpack.MyClass" /> or I declare <%@ page import = "mypack.mysubpack.MyClass" %> In each case I can call a function later by coding MyClass.myFunction(); So what is the difference between the two variantes? Why are Beans invented if we don't need them because we have the import statement ? please guide me its an humble request to you reader if u know n i'll be thankful to you...........

0 Answers  


What is scriptlet, expression and declaration in jsp?

0 Answers  


How do I create a dynamic web project?

0 Answers  


Why is jsp used for?

0 Answers  


How we can configure init params in jsp?

0 Answers  


i am using rich faces datatable rich:datatable. On entering the value, values get filtered in table. Now how can i get the value in back9ing bean..?

1 Answers  


What do you mean by jstl?

0 Answers  


Categories