Last post Sep 16, 2013 09:47 AM by Illeris
Sep 13, 2013 09:41 AM|mux.work|LINK
I am invoking a third part JSP based web page from my .NET web site. This third party is launched or opened in a popup window from my site’s parent pahe. Once I am done with first invocation this third party application is setting some cookie in the browser.
Because of this second request to this third party application is failing, as there is some specific logic written in that application which identifies the cookie and return the error.
Open third party application always in new IE process with the help of activex object (‘iexplore.exe’) will solve the problem as it open the new browser window with new
session always. However we want to stay away from the use of Activex considering potential security warnings.
Is there alternative to open IE popup altogether as a new session or is there any alternative solution to handle this?
Sep 16, 2013 09:47 AM|Illeris|LINK
As far as I know, sessions are bound to a browser session, not to a window.
I'm not sure I understand your question correctly, so correct me if I'm wrong. If you want to force a new session, you'll need to terminate the current session. This can be done by invoking Session.Clear() in asp.net.
Now you'll need a moment to do so. One option is to push random data in the querystring. The first call to your page, without random data, will redirect to the same page with random data (ex: "mypage.aspx" => mypage.aspx?id=22993939). This sets the random
data in session memory. If you encounter a page where the querystring value is not te same of the session data => new call => reset session.