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 methodology can be followed to store more number of objects in a remote server?
Explain the difference between get and post method in servlet?
What is load-on-startup in servlet?
What is getservletcontext?
How to get the actual path of servlet in server?
How do you create a cookie using servlet?
Define the life cycle of a servlets.
What is servletconfig?
What's the use of servletcontext?
What is URL Encoding?
What is a servlet engine?
What are the types of servlet?
List out the difference between ServletConfig and ServletContext?
What is the servletconfig object?
Is tomcat a servlet container?