Help, please, implement a one-time page reload. The user enters the site, the page reloads once and does not reload again until the next session.
The code turned out like this, but does not work. Please help me figure it out. It seems to me that I messed up with the keys in sessionStorage.
var reload = 0; if(sessionStorage.getItem(reload==0)){ window.location.reload(); reload=1; }