David, I'm not aware of any out of the box approach, that would help you to do so. You may need to implement custom HTTP module, implement this functionality by handling some of application events or adding appropriate code to a master page (not the best approach, but should work).