I’m trying to create a faux log-out from a password protected page. My logic was that I could simply delete the auth cookie (using this method), and then reload the page.
However, it seems that my function sends the page into an endless reload loop, without even having to click on the log-out button.
@peej - can you post the live site? It seems unlikely that a click event is occurring to trigger the function without a click actually occurring, but maybe there is a conflict with another script?
Thanks, that stops the page from reloading automatically. It seems like the cookie doesn’t get removed though, do you have any suggestions on how I may approach that?