Starts to modify session to id based instead of object based.