Sensex, Nifty Register Longest Rally In Over Three Years