added api for sessionManager from content scripts