I have one VB.net ClassLibray application.
I have a line of code:
System.Diagnostics.Process.Start(“https://stackoverflow.com/“)
This will take me to stackoverflow website.
the question is when i close the stackoverflow website how to get a response back to my application ?
ie,
How to handle the sessions of external web pages in .net ?
There is no general way to do this. There is no way to know what process will be started when you call that method.
For example, it might start any installed browser, such as Firefox, IE, Safari, or Opera.
Even if you know what browser it is there is no way to know what the process is. Many new browsers support tabbed UI or run in multiple processes. There is no way to know which process or which tab in a process will handle this URL.
It also isn’t clear what you mean by “session”. What exactly are you hoping to do here?