What are setSecure() and getSecure() methods in Cookies?
Answer / harikrishna ravada
setSecure:
Indicates to the user agent that the cookie should only be
sent using a secure protocol (https). This should only be
set when the cookie's originating server used a secure
protocol to set the cookie's value.
public void setSecure(boolean flag)
getSecure:
Returns the value of the 'secure' flag.
public boolean getSecure()
Is This Answer Correct ? | 1 Yes | 0 No |
What is Generic Servlet and how it is different from Http Servlet?
What is the major difference between servlet and applet?
Explain is servlet mapping?
What do you mean by cgi?
Define servlet mapping?
What is java servlet?
Difference between get and post in java servlets?
What is the difference between encodeRedirectUrl and encodeURL?
What do you mean by filter in servlet?
Is there any differance b/w getting servlet context from servlet config and session? if yes then what is that?
Why do we need a constructor in a servlet if we use the init method?
How many ways are available to ger RequestDispatcher object?