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 |
Can you send an authentication error from a servlet?
Explain the methods of request dispatcher in servlet?
What is servlet invoker?
Is servlet a controller?
What is called Session Tracking?
Is there any need to shutdown the web server, if you want to modify a servlet?
What is difference between cookies and httpsession?
How to make sure a servlet is loaded at the application startup?
What is Servlet Context?
What are cookies and how will you use them?
What is Generic Servlet and how it is different from Http Servlet?
when the several requests comes to server..how it manage the requests