How can I set a cookie and delete a cookie from within a jsp page?
Answer / Awani Yadav
To set a cookie in JSP, use the response object's Cookie method: n<code>response.addCookie(cookie);</code>n To delete a cookie, set an expiration date in the past.n<code>cookie.setMaxAge(0); response.addCookie(cookie);</code>
| Is This Answer Correct ? | 0 Yes | 0 No |
Can you call jsp from servlet?
Give the use of session object.
How do we prevent browser from caching output of my jsp pages?
How do I use a scriptlet to initialize a newly instantiated bean?
How does JSP handle run-time exceptions?
What do you know about writing custom jsp tags?
What is <jsp:usebean> in jsp?
How do you prevent the creation of a session in a jsp page and why? What is the difference between include directive & jsp:include action?
How do you comment out in jsp?
What is difference between custom jsp tags and beans?
What is contextpath?
Q : In session created by server with client(browser) How can server find that request coming is belong to new session OR belong to session that is timeout.