Deleting Cookies
Learn Deleting Cookies (Cookies, Spring MVC) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.
Fresher Notes Delete by expiring : send the cookie again with Max-Age=0 ( setMaxAge(0) ) and the browser removes it at once. Match the identity : use the same name, Path and Domain as the original, or the browser will not find the cookie to delete. Value does not matter when deleting; an empty string is common.