How do I disable a cookie ?
The storage of cookies is controlled by their maximum age property. A positive value means the cookie should be stored for the given number of milliseconds from the present time. A negative value means the cookie should not be stored and will expire when the browser is shut down. To delete an existing cookie, call setMaxAge(0) before issuing the servlet response. Use the code below to delete all cookies for the current site, for example:
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.