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 is servlet api used for conneting database?
What is the difference between CGI and Servlet?
request parameter how to find whether a parameter exists in the request object?
Explain the architechure of a servlet?
What is Client-Server Computing?
Difference between get and post in java servlets?
What is the dispatcher servlet?
What is servlet initializer?
What do you mean by default initialization in java servlet?
What are the steps that are required to handle the multi-threading?
What is difference between PrintWriter and ServletOutputStream?
What do you mean by web applications? Explain web application directory arrangement?
How can we achieve transport layer security for our web application?
If some new data has entered the database, explain how can a servlet refresh automatically?
Explain the features are in servlet 3?