Convert the session object to autodoc

Change-Id: I0be3800151f9dbd7bc070cd3885ae0ffc9da1b0c
Merge "Convert the session object to autodoc"