Fixed cookies model, send cookies on header now rather than ASAP