Add set-session method