Topic: Browser back button

Hi all,
Is there anyone that knows of an example of how to get the back button in the browser to work when using ajax/rjs/rails?

Actually I have two problems with my site and the back button. When clicking the back button the browser reloads the page prior to the first page including "ajax-calls". Also the session is not set back to the state of the loaded page but stays the same.
I've tried some javascript frameworks (rsh, yahoo) to solve this but failed miserably since my javascript skills aren't the best. That's why I'm hoping for a "railsified" example wink