[TSM] Implemented session loading, closes #1784.