How to set a cookie that is persisted only for the duration
fo the clients session?
Answer Posted / janet
if u donot explicitly set a life time for the cookie using
cookie.setMaxAge(),the cookie is automatically deleted when
the user closes his browser.
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What are the life cycle methods of the servlet?
What is the difference between get and post methods?
When to use doget() and when dopost()?
Explain url encoding in servlet?
What is the use of servlet context?
How is a servlet implemented in code?
What are the difference between RMI and Servlets?
What is webservlet?
Explain web application directory arrangement?
Describe in brief RequestDespatcher?
What is httpservlet and how it is different from genericservlet?
Why servlet is mostly used?
What is called servlet container?
How printwriter is different from servletoutputstream?
How are filters?