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 |
What are the objects involved when a servlet receives a call from client?
How do you pass the data from one servlet to another servlet?
How we can check in particular page the session will be alive or not
What are the types of ServletEngines?
Why do we need a constructor in a servlet if we use the init method?
If we disable cookies in our web page, what will happen?
Define servlet mapping?
Why HttpServlet class is declared abstract?
What is the difference between servlet and jsp?
Why doesn’t a servlet include main()? How does it work?
How do you design microservices?
How a servlet is unloaded?