Add example for clearing state and cookies.