How to clear browser session using dot net code Session.Abandon()?


I want to abandon a current session in browser using session.abandon() which is a dot net code. But how do I exactly do that?

I am new to RPA and have no idea how to implement this dot net code.

Can anyone please explain me the steps in order to do so?

Note: I am aware that I can do “Inject .net code” or “Invoke code”. But how to I exactly achieve the Session.Abandon() thing?

Thanks in advance