adding session method.