msdn.microsoft.com/en-us/library/system.... On exit of the window, you could throw out that appdomain and the resources used within.
You can try and manually handle initial connectivity and then use NavigateToString to render the result. Something like this: String responseString; HttpWebRequest request = build you request, incorporate session token, etc HttpWebResponse response = (HttpWebResponse)request.GetResponse(); using (StreamReader reader = new StreamReader(response. GetResponseStream())) { responseString = sr.ReadToEnd(); } browser.
NavigateToString(responseString); EDIT: Using cookies, source: public partial class WebBrowserControl : Form { private String url; DllImport("wininet. Dll", CharSet = CharSet. Auto, SetLastError = true) public static extern bool InternetSetCookie(string lpszUrlName, string lbszCookieName, string lpszCookieData); public WebBrowserControl(String path) { this.
Url = path; InitializeComponent(); // set cookie InternetSetCookie(url, "JSESSIONID", Globals.ThisDocument. SessionID); // navigate webBrowser. Navigate(url); } ... }.
I will try this tomorrow and let you know... Thanks – John Dec 15 at 22:17 1 How do I get the session token from IE or another browser. This is the issue. I'm sure the code works fine, it's getting that JSessionID from IE, firefox or even chrome if its already open and connected to JBoss.
Further if I open the JBoss using the WPF browser how do I give that session cookie back to the other browsers again. – John Dec 16 at 12:25 What happens if you open IE and then open Firefox? Does the connection work in both browsers at the same time?
You cannot really share cookies or sessions between browsers. – Max Dec 16 at 19:26 You're right it doesn't work in FF once its open in IE. I thought though that the WPF to IE portion would work at least.So it seems there is no way for this to work with JBoss and JSessionID?
– John Dec 19 at 12:56 @John: You should be able to have access to the JSessionId that is persisted in the cookie in both IE and WebBrowser control. I added an example how you use cookies in WebBrowser control. – Max Dec 19 at 19:37.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.