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
What is difference between PrintWriter and ServletOutputStream?
How can we include static files in the jsp page?
What is meant by cookies?
What is the need of session tracking in web application?
What are Servlets?
What do you mean by session tracking?
If my browser does not support cookie, and my server sends a cookie instance what will happen?
What is a generic servlet?
What is meant by a web application
How can the session in servlet can be destroyed?
Can you explain in detail 'javax.servlet' package?
Explain url encoding?
Explain load on start-up and its importance?
What is servlet lazy loading?
What is the use of servletconfig interface?