Use list_elem_back instead of list_back to find client elem
Add key to session struct, as suggested by @itamarro