Implementing getsessionbyids into the datacontext