Answers for "how to clear all cache and cookies on logout in javascript"

1

javascript Clear All Cookies

const clearCookies = document.cookie.split(';').forEach(cookie => document.cookie = cookie.replace(/^ +/, '').replace(/=.*/, `=;expires=${new Date(0).toUTCString()};path=/`));
Posted by: Guest on September-28-2021

Code answers related to "how to clear all cache and cookies on logout in javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language