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


Please Help Members By Posting Answers For Below Questions

What is jsp page?

614


Can we implement an interface in a jsp?

632


How is scripting disabled?

611


What is the standard action?

619


Can we define a class inside a jsp page?

569






A jsp page, include.jsp, has a instance variable "int a", now this page is statically included in another jsp page, index.jsp, which has a instance variable "int a" declared. What happens when the index.jsp page is requested by the client?

745


How can a thread safe JSP page be implemented?

654


What is < jsp:forward> tag for?

623


What is an expression in jsp?

607


What is taglibs?

573


How many tags are there in jsp?

556


Explain the uses of jsp?

618


How we can configure init params in jsp?

627


Is there a way to reference the "this" variable within a jsp page?

633


What is the _jspservice() method?

592