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 the requirement of servlet config and servlet context implemented and how are they implemented?
What is a web application and what is it’s directory structure?
Explain mvc pattern.
What is the difference between the getrequestdispatcher(string path) method of javax.servlet.servletrequest interface and javax.servlet.servletcontext interface?
Why do we have servlet wrapper classes?
What is servlet context ?
Can we refresh servlet in client and server side automatically?
What is URL Encoding?
How to get the server information in a servlet?
how to pass parameter from servlet to html form
What is context in servlet?
Explain the features are in servlet 3?