How can I set a cookie and delete a cookie from within a JSP page?

Q

How can I set a cookie and delete a cookie from within a JSP page?

✍: Guest

A

A cookie, mycookie, can be deleted using the following scriptlet:

2013-08-07, 1800👍, 0💬