Markets extended gains for second consecutive session on Thursday., shrugging off weak global cues. Firm domestic economic data continued to boost investor sentiment. The BSE Sensex closed at 58,461.29, up 776.50 points or 1.35%. The Nifty was at 17,401.65, up 234.75 points or 1.37%.