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 the session in servlet can be destroyed?
What is servlet configuration?
Name the different ways of session tracking.
Can a servlet be called by passing its name as a parameter in the URL?
What is servlet tunnelling?
How many ways are available to ger RequestDispatcher object?
What are the common methods that are included in the http servlet class?
When Servlet is unloaded?
What is servlet attributes and their scope?
Some examples where generic servlet is used?
how a servlet is instantiated, whether the container calls init() or by calling any other method? please somebody reply..
What is java servlet?