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
Why is init() method is used in servlets?
How to notify an object in session when session is invalidated or timed-out?
Explain session tracking and its importance?
How can we achieve transport layer security for our web application?
Can a jsp be called using a servlet?
What is the
Why do we have servlet filters?
How are filters?
Explain the difference between generic servlet and http servlet?
What is the type of method for sending request from http server?
What is the disadvantage of cookies?
What are the difference between RMI and Servlets?
Which event is fired at the time of project deployment and undeployment?
How do I know if java is running on linux?
When servlet object is created?