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 an implicit object?
Is jsp front end or backend?
What is difference between page and pagecontext in jsp?
When i am useing useBean tag of JSP in weblogic server It show compiletion error..Like bad class file: C:\bea\user_projects\domains\Mahesh\applications\UseBean\WEB-INF\classes\user\UserData.class class file has wrong version 49.0, should be 48.0 Please remove or make sure it appears in the correct subdirectory of the classpath. user.UserData user1 = null; //[ /SaveName.jsp; Line: 4]
What is welcome file list?
What is expression language in jsp?
What are custom tags?
Mention the advantages of jsp over pure servlets?
How does jsp engines instantiate tag handler classes instances?
How can we prevent implicit session creation in jsp?
What is out println in jsp?
Explain the jsp:setProperty action.
How jsp is compiled?
How can we disable java code or scripting in jsp page?
How can I enable session tracking for jsp pages if the browser has disabled cookies?