when will cookie information destroy?

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


Please Help Members By Posting Answers For Below Questions

How is an application exception handling is done using a servlet?

514


What are the functions of the servlet container?

995


Explain jsessionid and when is it created?

567


What is api in servlet?

498


Explain the difference between generic servlet and http servlet?

526






What do you mean by singlethreadmodel interface?

557


What is the major difference between servlet and applet?

525


What do you mean by session tracking?

645


What is the difference in between the httpservlet and generic servlet?

584


How will you pass values from HTML page to the servlet?

537


What are different ways for servlet authentication?

544


Describe in brief RequestDespatcher?

571


What is servlet and list its types?

523


Which is the methods of generated servlet?

660


How can we invoke another servlet in a different application?

686