Generalize problem consultation (only id in session variable)