What are setSecure() and getSecure() methods in Cookies?



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

Post New Answer

More Servlets Interview Questions

what is meant by Transaction Isolation Levels?

2 Answers   IBM,


Define the servlet mapping.

0 Answers  


when the several requests comes to server..how it manage the requests

4 Answers   iGate,


What is the process to implement doget and dopost methods?

0 Answers  


What is the difference between servlet and filter?

0 Answers  






Define context initialization parameters.

0 Answers  


What is servlet interface?

0 Answers  


Which are the different ways you can communicate between servlets?

0 Answers  


What is the use of httpservletresponsewrapper?

0 Answers  


hi actully i hav form columns with origin and destination names .as like as i need to create one more column with name amount. my requirement is when i select origin and destination columns automatically i need to get amount from database.how can i. please tel me with relative code

0 Answers   CTS,


we cant Override Jsp Service method?Why?

4 Answers   Infrasoft, Mind Tree,


HTTP tunneling means what?

2 Answers  


Categories