Yes, 'sudo -k' and 'sudo -K' should (and do) also remove the problem, if done on the right pseudo-terminal.
Yes, 'sudo -k' and 'sudo -K' should (and do) also remove the problem, if done on the right pseudo-terminal.