Collect session stats.