Can something be done to prevent a user from using the back button when wp_logout_url
is called? Sure, it logs the user out but they can still see pre-rendered HTML on the page if they press back. Being sensitive data, what can be done?
I have come up with a variety of workarounds that don't answer it, from trying to close the window to redirecting to a different url etc.
Does anyone know how I can prevent a user from pressing BACK, or an elegant hack to stop this?
I need something that checks if the user is logged in, similar to how if you logout in facebook, you can't click back