xprofile: re-add session stuff