Cocke was elected as a
Whig to the
Twenty-ninth and
Thirtieth Congresses. He served from March 4, 1845 to March 3, 1849. During the Thirtieth Congress, he was chairman of the U.S. House Committee on Revolutionary Pensions. He was not a candidate for re-election in 1848. Elected to the State Senate, Cocke served from 1855 to 1857. Cocke served in the 31st General Assembly in the second session of 1855-1896, replacing Christopher Hitch, who had resigned; representing Anderson, Campbell, Claiborne, and Grainger counties as a Democrat. His uncle, John Cocke, also served as a member of the Tennessee general Assembly. From 1859 to 1865, he resided in Asheville, North Carolina. in about 1872, he moved to Lexington, Kentucky, and from there to Nashville, in Davidson County, Tennessee. ==Death==