WebBrowser control Session issue ?
-
i have two WebBrowser object on my Form with following line of code against a button click event WebBrowser1.Navigate("http://localhost/WebApplication1/Default.aspx") WebBrowser2.Navigate("http://localhost/WebApplication1/Default.aspx") in Default.aspx i am displaying SessionID ... Default.aspx page is showing same SessionID for both WebBrowser1,and WebBrowser2 objects. how to get different sessionID in both WebBrowser1,and WebBrowser2 controls?
-
i have two WebBrowser object on my Form with following line of code against a button click event WebBrowser1.Navigate("http://localhost/WebApplication1/Default.aspx") WebBrowser2.Navigate("http://localhost/WebApplication1/Default.aspx") in Default.aspx i am displaying SessionID ... Default.aspx page is showing same SessionID for both WebBrowser1,and WebBrowser2 objects. how to get different sessionID in both WebBrowser1,and WebBrowser2 controls?
Make sure you are on different sessions.. i think the default behaviour of the WebBrowser control inherits from Internet Explorer stuff ( probably).. and as I recall, while in the same thread or executable, sessions are shared. ( like in internet explorer when you open different tabs in the same browser)