refactor Confluence sessions handling