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 |
Explain static method?
What is jsp exception?
Give the syntax for jsp comments.
Mention some important jsp action tags.
What is the use of Application Object and Session Object in JSP?
What is jstl?
Explain the jsp:setProperty action.
What are the jsp lifecycle phases?
What is jsp language?
What is the difference between directive include and jsp include?
What is use of scriptlet tags in jsp?
How we can use javascript with jsp pages?