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
Where do you define dispatcherservlet?
What do you mean by cgi?
How can the session in servlet can be destroyed?
Difference between java beans & servlets?
When jsessionid is created?
Difference between get and post in java servlets?
What is Servlet API used for connecting database?
How to notify an object in session when session is invalidated or timed-out?
What is url encoding and url decoding
What is the difference between Servlet Request and Servlet Context when calling a Request Dispatcher?
What do you mean by servlet?
What are the mechanisms used by a servlet container for maintaining session information?
What is servlet interface?
What mechanisms are used by a Servlet Container to maintain session information?
How do you find out what client machine is making a request to your servlet