Joachim

Joachim

  • NA
  • 1
  • 0

Activate an existing browser session with a .Net executable

Oct 11 2007 1:53 AM

Hello,

I'm looking for a way to activate an existing browser session by means of a C# .Net executable.
I have found some code where I would be able to look for all active programs, and eventually even kill them. I did not find a way to activate a process, however.


private void button1_Click(object sender, System.EventArgs e)
{
System.Diagnostics.Process[] myProcesses;
myProcesses = System.Diagnostics.Process.GetProcesses();

foreach (System.Diagnostics.Process instance in myProcesses)
{
MessageBox.Show (instance.MainWindowTitle);
//instance.Kill();
}
}

I need this to avoid the user to have logged in again.
I want to activate his open internet session, and eventually even refresh his session with a new url.
E.g.
http://localhost/sid=abc123?nameId=10
should be replaced by
http://localhost/sid=abc123?nameId=20 , in the same session, and triggered by an executable.

Is this possible ?

Help would be very much appreciated.