New York no longer allows state agencies to gather information about salaryhistory, and the legislature is considering an extension of this ban to private employers.
In fact, New York City is expected to make it illegal to ask for salaryhistory very soon (and Massachusetts banned it last year, and California is considering legislation to do the same).