How to Test Cookies in a Stateful Web System