Try the following case:
Finally, click logout. Now click back button .. none of the "pages" are in cache.
How does Yahoo do this? It seems like they are manipulating the use of the Back button.
Would appreciate an analysis of this since I would like to implement similar functionality.
They probably use their own Browser History Manager (the source is on github)