Can we not just test for the cookie being set on the client side rather than involving the server?