Not very long. It is not recommended to use egg-based products that have been kept between the temperatures of 40 F to 140 F (i.e. room temperature) for more than 2 hours. The sugar in your cookie dough will probably buy you a little more time, but not much, so why risk it?