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 procedure for initializing a servlet?
What is the major difference between servlet and applet?
What is cgi?
What is the directory structure of web application?
Explain get and post.
What are the steps involved in placing a servlet within a package?
Given the request path below, which are context path, servlet path and path info?
Is that servlet is pure java object or not?
Should I override the service() method?
How does Cookies work in Servlets?
why we should override only no-agrs init() method.
Which event is fired at the time of setting, getting or removing attribute from application scope?
How to get the IP address of client in servlet?
How can you use a servlet to generate a plain text instead of html?
Hi frnd can i any one kindly can post for me portlet,hibernate and spring example application and with flow explantion configuration using Jdeveloper.and related links ar tutorials kindly please send me .its urgent for me .thanks in advance...........else can any one send to kondaiah.goddeti@gmail.com