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 |
How can we invoke another servlet in a different application?
What do you mean by session tracking and also explain its techniques?
How do you create connections for number of users, if you want to improve performance?
Is it good idea to create servlet constructor?
What is pure servlet?
Can I override destroy() method of Servlets?
How do you communicate in between Applets and Servlets?
request parameter how to find whether a parameter exists in the request object?
What is difference between ServletResponse sendRedirect() and RequestDispatcher forward() method?
What is context switching?
What is the protocol used by Server & Client?
What is the difference between the include() and forward() methods?