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 invoker?
What is the difference between Difference between doGet() and doPost()?
Explain the features are in servlet 3?
If some new data has entered the database, explain how can a servlet refresh automatically?
How to upload a file to the server using servlet?
How to get the IP address of client in servlet?
What is a java servlet?
How can we refresh automatically when new data is entered into the database?
What is the difference between portlet and servlet?
What is servlet interface?
Difference between doget and dopost?
Why do we need a constructor in a servlet if we use the init method?
Name the packages that work with servlet?
What is a servlet context object?
What do you mean by default initialization in java servlet?