How to set a cookie that is persisted only for the duration
fo the clients session?
Answer / 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 |
How do you pass the data from one servlet to another servlet?
What are common tasks performed by Servlet Container?
What are the mechanisms used by a servlet container for maintaining session information?
waht is the main diference b/w servelts and JSP ?
what is the control flow in servlet when we send a request?
What are the differences between servlet context vs servlet config?
What is MIME Type?
Write a command to get actual path of a servlet to the server?
What is java servlet session?
Explain jsessionid and when is it created?
What are the uses of servlet
How can we refresh automatically when new data is entered into the database?