Rephrase the title:Nifty, Sensex extend gains for 2nd session on fresh foreign fund inflows; IT stocks shine Business