roboky

Hi,

Here is my scenario: I have a management page which shows all the registered user names. I want to popup a new window when I click on the name of a user and automatically login that user in the new window.

The problem is that everytime when a new users is logged in, the previous user's session variables will be replaced by the new user, since the "poped-up" IE6 will always have the same session ID with its parent browser.

I think the only way to solve this problem is to start a new instance of IE6 (or iexplore.exe process) everytime when I click on a user's name, so they don't share the same session variables. It seems for security reason, starting a new (iexplore.exe) process on client side has been disabled. If anyone understand my (bad) english and knows the answer, please share it here. Many thanks!



Re: Internet Explorer Web Development How to start new instance of IE6 from .NET Web Application

Dave Massy

Hi roboky,

Can you explain further how you seem unable to start a new iexplore.exe process

Thanks

-Dave






Re: Internet Explorer Web Development How to start new instance of IE6 from .NET Web Application

roboky

Hi Dave,

I tried to start iexplore.exe with two different approaches, and none of them works.

The first approach is using System.Diagnostics.Process.Start() on server side code, and I end up with having iexplore.exe process started but it only visible in the task manager. The same code works in a windows application, so maybe I missed something in my code or maybe the code just starts the process on the server instead of client machine.

My second approache is using javascript ActiveXObject, and i got an error saying something like "permission denied", so i think it could be disabled for security reason.

I'm using VB.Net and Windows 2000.

Any suggestions Thanks for your reply!





Re: Internet Explorer Web Development How to start new instance of IE6 from .NET Web Application

Noemie

I'm also trying to start ieplorer from a web application.

Did you finally find a way to do it





Re: Internet Explorer Web Development How to start new instance of IE6 from .NET Web Application

roboky

Sorry Noemie, I haven't found any answer yet. But I have solve my problem by changing my application's web.config to use cookieless session (session id is embeded in uri instead of cookie), so that I can start a new session by passing the absolute uri to the new browser opened by window.open(). But I still perfer not to use cookieless session for security reason. Hope that helps.



Re: Internet Explorer Web Development How to start new instance of IE6 from .NET Web Application

Wagepeace007

Roboky > Your question about starting a new instance of IE really has nothing to do with your .NET application; your .NET will be subjected to the same security regulations as regular webpages.

The answer to your question is that it is indeed possible to start a new process of internet explorer on a user's computer, but by default, you wont have the permissions to do so on a regular webpage.

If you can obtain the appropriate security settings on your webpage from the end user, then the class id for Internet Explorer is 0002DF01-0000-0000-C000-000000000046, but even that would only work from Internet Explorer (not firefox, netscape, etc)... And im still not exactly certain that you will get away will initializing that object on a regular webpage vs an HTA or secure HTML.





Re: Internet Explorer Web Development How to start new instance of IE6 from .NET Web Application

roboky

Hi, Wagepeace007, I guess starting a new instance of IE6 is not going to help my application much, so I'll just stick to what I have already done. Thanks for the advice.



Re: Internet Explorer Web Development How to start new instance of IE6 from .NET Web Application

AlaaZaghmout

guys i managed to open instance of IE by using the following code:

string strMyPage = "myPage.aspx";

Response.Write("<script>window.open(' + strMyPage + " + Session.SessionID.ToString() + ",'_new');</script>");

this will open a new instance and will send the session ID with it,

But I had a problem in the second page is after reading the SessionID from the URL using the following "Request.QueryString.Get(0);" I did not find a way to use this session in the new page.. so can any body help please.






Re: Internet Explorer Web Development How to start new instance of IE6 from .NET Web Application

roboky

Hi AlaaZaghmout,

Sorry I haven't tried your code yet, but if you are really sure that a new session is started in the second IE, then could you explain what do you mean by did not find a way to use this session Do you mean you can't create new session vairables in the second IE





Re: Internet Explorer Web Development How to start new instance of IE6 from .NET Web Application

EricLaw-MSFT

Window.open() will not create a new process. That means that the new window will have the same cookies as the old.



Re: Internet Explorer Web Development How to start new instance of IE6 from .NET Web Application

AlaaZaghmout

well that might be right, but I do not use cookies :) and about the session, my believe is that it creates a new session (but I will to check :) ).

anyway I still have the same problem, I created a session in the first page and I stored a ReportDocument at, and I want to use this Rocument in the newly created page, I tried to use the session ID, but this property is "Read only".

so any ideas