record Session information and make available

add getSessionsByJID
add getSessionsByIdentity