Answer Posted / ramu
cookie is small "amount of a data", the cookie is set by
client & server.
cookie is setmaxAge() .
For ex:-
1.cookie.setMaxAge(100)-->100 sec
If we set the max age of a cookie to 100 sec,the
browser
holds the cookie for 100 sec even if we close the browser.
2.If we set max age value to negative value the browser hold
the cookie till we close the browser.
3.If we use setMaxAge(0) the browser will arase the cookie.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is the difference between the getrequestdispatcher(string path) method of javax.servlet.servletrequest interface and javax.servlet.servletcontext interface?
What is the difference between servlet and filter?
What is the difference between the http servlet and generic servlet?
List out the difference between ServletConfig and ServletContext?
How can you start a jta transaction from a servlet deployed on jboss?
What are the phases of servlet life cycle?
When to use doget() and when dopost()?
Why don't we write a constructor in a servlet?
What are all the advantages of servlet over cgi?
Explain web container.
What are the advantages of servlets over traditional cgi?
Differentiate between the get and post method
Explain the difference between generic servlet and http servlet?
What is httpservlet and how it is different from genericservlet?
What do you mean by scope object and what are its types?