spring-framework / org.springframework.web.util / CookieGenerator / removeCookie

removeCookie

open fun removeCookie(response: HttpServletResponse): Unit

Remove the cookie that this generator describes from the response. Will generate a cookie with empty value and max age 0.

Delegates to #createCookie for cookie creation.

Parameters

response - the HTTP response to remove the cookie from

See Also
#setCookieName#setCookieDomain#setCookiePath