if you want to negate the access after logout
you can use javacript method location.replace() to cancel the history cache from the browser.
It doesn't generate a new element in the history object, but replaces the last reference. Whith this, if you click on back button, the browser doesn't load the previous url, but the next before. Try it, it is more simple than described.
Maybe this solution can help you...