Logging out, and browser cache
Sorry if this has been asked (and answered) elsewhere, but I haven’t been able to find it.
I created a WordPress site for a client that’s “for members only,” containing some sensitive content. Everything’s working fine, and all’s well, with the exception of logging-out.
I’m using wp_logout_url(“http://somewhere.else”)to get the visitor out of the site, and redirect them to a public page, which works fine, however, the “for members only” site remains in the browser cache, so even though the logout & redirect were successful, you can hit the “back” button in the browser, and see the last “private” thing the member was viewing.
Of course, a page reload fixes that (I’m routed-back to the login screen correctly on reload), but if the member is on a public computer (internet cafe, or what have you), it’s bad news, for sure (this is very confidential information).
I’m trying to build all of this without modifying the WordPress core, or any of the “off-the-shelf” plugins, however, it is a custom theme, and I can implement anything at that level.
Thanks in advance for any help!
- The topic ‘Logging out, and browser cache’ is closed to new replies.