What are setSecure() and getSecure() methods in Cookies?
Answer Posted / 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 |
Post New Answer View All Answers
Explain mvc pattern.
Which method is called when reference variable is passed in system.net?
What's the use of servletcontext?
How to generate the server side programming and the advantages of it over the other languages?
What is httpservlet class?
What are the different methods involved in generic servlet?
How can we invoke another servlet in a different application?
What are common tasks performed by Servlet Container?
How do you deal property files in servlet?
What is the use of request dispatcher interface?
What is life cycle of Servlet?
What is servlet container. how it works?
Explain the role of dispatcherservlet and contextloaderlistener.
How are filters?
What is session tracking?