what will happen if we disable cookies in the web page?
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
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 |
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 |
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 |
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 |
What do you know about writing custom jsp tags?
What is the purpose of <jsp:usebean>?
What is the <jsp:forward> standard action?
How can I prevent the use of scripts and java code on the jsp page?
What is meant by implicit objects and what are they?
What are the features of jsp?
What is the resourcebundle class in jsp?
What are scripting elements?
What is jsp and why it is used?
Why jsp is better over static html also explain lifecycle of a jsp?
How to send data from jsp to jsp?
How to disable scripting?