Number Of Page View:100,000+/Months
LOGIN |New User


What is the use of setSecure() and getSecure() in Cookies ?
The setSecure(boolean flag) method indicates to the browser whether the cookie should only be sent using a secure protocol, such as HTTPS or SSL.
The getSecure() method returns true if the browser is sending cookies only over a secure protocol, or false if the browser can send cookies using any protocol.