open fun setCookieSecure(cookieSecure: Boolean): Unit
Set whether the cookie should only be sent using a secure protocol, such as HTTPS (SSL). This is an indication to the receiving browser, not processed by the HTTP server itself.
Default is "false".
See Also
javax.servlet.http.Cookie#setSecure