Better cookies handling.