How can a servlet indicate to the browser that cookie data should be sent over a secure connection?
A. Call the getSecure(true) method on the cookie object.
B. Encrypt the cookie data. The browser automatically sends encrypted data over a secure connection.
C. Set the ENCRYPT header in the response.
D. Configure SessionTrackingMode.SSL on the ServletContext object.
setSecure(true) https://docs.oracle.com/javaee/7/api/javax/servlet/http/Cookie.html