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 the JSP file will be executed on the Server side?
how to use servlets with j2ee ?
Which exception is thrown if servlet is not initialized properly?
what is EJB and Java servlet
Write a command to get actual path of a servlet to the server?
can we create more than ServletContext and ServletConfig in your application
What are the types of servlets? Explain
Whats the advantages using servlets over using CGI?
How threads are implemented in servlets?
What is the difference between portlet and servlet?
What is a servlet context object?
Why do we have servlet filters?