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.


Enter your email address to get our daily JOBS & INTERVIEW FAQ's Straight to your Inbox.

Make sure to activate your subscription by clicking on the activation link sent to your email