I use an extension on Google called "Cookie AutooDelete" which, surprisingly enough, does just that when you leave the site. You can add white lists, like this site for instance, so that it doesn't delete cookies etc when you leave.
It works well and keeps your PC clean.
Steve