JavaScript Deleting Cookies
Javascript facilitates multiple ways of deleting cookies. These are as follows: 1. Delete the cookie by using the expire attribute document.cookie = ‘name=Mahesh; expires=Sun, 19 May 2019 18:04:55 UTC’ 2. Delete the cookie by using the max-age attribute document.cookie = ‘name=Vishal; max-age=7200’ 3. Delete cookie explicitly by using a web browser Example: <!DOCTYPE html> <html> … Read more