Using private browsing (or "incognito mode") while accessing sensitive information on a public computer is the best approach to prevent others from seeing what was done during that session. Private browsing does not save a record of browsing history, cookies, or form data, effectively ensuring that subsequent users of the public computer cannot easily retrieve this information from the browsing session.