How to manipulate history? How to handle destructive or state-changing POST requests?

How to manipulate history? How to handle destructive or state-changing POST requests?

A practical problem when building a web app with jquery-mobile.

I login through POST and then do redirect (to "/") after the user is logged in. But I get a back button, and a location bar that says "/#/util/login" in, the back button takes me to the login page. I don't want a back button, and I want to reset the cache of pages.

What would be the best way (canonical jquery-mobile) to achieve this? Should I include a little inline javascript on the page that is shown when logged in that manipulate the history? Or is this possible by specifying some attribute?

The same applies for having the user complete a few steps of some process viewing a couple of pages that in the end result in a state change on the server. I suppose I could add a back-button with rel-external, but it would be cleaner just to be able to reset the history. And I don't see how I could trigger such a reset of history after a successful POST query.