ProAnswers.org

What is the use of setSecure() and getSecure() in Cookies ?

setSecure method indicates to the web browser that the cookie should only be sent using a secure protocol (https). getSecure method returns the value of the ‘secure’ flag.