Added back cookie logging for debugging purposes.