Fix inconsistent Cookie values in WebSocketHandler.