quick-musician-29561
01/17/2024, 6:07 AMjs
window.addEventListener('beforeunload', function() {
sessionStorage.clear();
});
It removes all data stored in it for that session, and the data will not persist across page reloads or in different browser tabs/windows.