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 |
How to maintain security in servlets?
What is the difference between doGet and doPost?
What is meant by servlet? What are the parameters of the service method?
Who is responsible to create the object of servlet?
Explain the different ways for servlet authentication?
Why is init() method is used in servlets?
What is ServletContext object?
What are its drawbacks of cgi?
What do you mean by url pattern in servlet?
How do we translate jsp?
Can you call a jsp from the servlet?
Is the init(ServletConfig sc) throws IOException or not?