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 meant by a web application
What compiler do not do if we create our own constructor?
What is the difference between servlet and filter?
how many jsp scripting elements are there and what are those?
What is filter? Can filter be used as request or response?
Explain the methods in Generic and HTTP Servlets?
What is connection pooling?
can u give some realtime example in ploymorphism? and inheritance?
What do you mean by interservlet communication?
What exactly are the functions of servlet?
what is the difference b/w DispatchAction and LookUpDispatchAction?
1 Answers Deloitte, iGate, Tech Mahindra,
How can we refresh automatically when new data has entered the database?