On Wednesday, the domestic markets witnessed a volatile session after the benchmark indices gained during the afternoon session. Sensex rose by 258.50 points or 0.66 per cent to close at 39,302.85 while Nifty gained by 76.90 points or 0.67 per cent to settle at 11,598.70.