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

addCookie

open fun addCookie(response: HttpServletResponse, cookieValue: String): Unit

Add a cookie with the given value to the response, using the cookie descriptor settings of this generator.

Delegates to #createCookie for cookie creation.

Parameters

response - the HTTP response to add the cookie to

cookieValue - the value of the cookie to add

See Also
#setCookieName#setCookieDomain#setCookiePath#setCookieMaxAge