add sharedSession() support
Merge branch 'AGIOS-279'