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 use of send redirect () method?
What's the difference between servlets and applets?
What are the types of servlets? Explain
What are all the protocols supported by httpservlet?
What is life cycle of Servlet?
What are all the ways for session tracking?
What are all the advantages of servlet over cgi?
Describe in brief RequestDespatcher?
What is lazy loading and what is Generic Servlet Class?
How will you pass values from HTML page to the servlet?
What are the difference between session and cookies in servlet? Explain
What are the common methods that are included in the http servlet class?
What are the uses of servlet and what is servlet chaining?
Explain how to improve Servlet Performance?
When to use doget() and when dopost()?