what will happen if we disable cookies in the web page?
Answer Posted / 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 View All Answers
What is difference between jsp and jstl?
How can I implement a thread-safe jsp page? What are the advantages and disadvantages of using it?
What are the components that make up a tag library in jsp?
Java Server Page I can use a function in two ways:
Either I declare
How to print java variable in jsp?
What is el?
Why are implicit objects not available in a regular jsp page?
What are jsp el implicit objects and how it’s different from jsp implicit objects?
what are the tools used in your project , How to ask the answer this question
Is jsp and javascript same?
What is the use of?
What is el in jsp?
What is jsessionid?
Why are jsp pages preferred for creating web-based client program?
Which directive is used in jsp custom tag?