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
Which http method is said to be non-idempotent and idempotent?
Can we fetch the attributes related to a servlet on a different servlet?
How can you push data from an Applet to a Servlet?
What is the servlet?
How can we achieve transport layer security for our web application?
What is SingleThreadModel interface?
How many servlet objects are created?
What is servlet and its use?
What is servlet and list its types?
Why do we have servlet filters?
Why the concept of single thread model interface is used?
Whether thread can be used in servlets?
Explain session tracking and its importance?
What are the differences between forward() method and sendredirect() methods?
What is difference between jsp and servlet?