0 votes
by (1.6k points)

1 Answer

0 votes
by (876 points)
selected by
 
Best answer

To delete a cookie follow these steps

Read an already existing cookie and store it in Cookie object. 

Set cookie age as zero using the setMaxAge() method to delete an existing cookie.

Add this cookie back into the response header.

Welcome to CodersEditor Q&A, where you can ask questions and receive answers from other members of the community.
...