473,700 Members | 2,549 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

New ASP session issue when new window opened from WebBrowser control embedded in VBForm client

Application architecture : Develop interface between two existing
systems,
a. Enterprise CRM system
b. Web based intranet system.

Environment : Intranet
Server : IIS and ASP.
Script : VBScript and Javascript
Client : 1. IE browser.
2. VBForm embedded with WebBrowser control (MS Internet
control - shdocvw.dll) called from another enterprise application.

Web App : Uses server side business logic implemented in COM
components. For each ASP session(starts with first ASP page user
access and ends with last ASP page), server COM components are
instanciated and held in session variables and liberally used in many
of the ASP pages. In the last page, there is an "Exit" button, which
when the user press, client side javascript closes the frames etc and
invokes a destructor like Close.asp page (in a seperate window)that
releases the session vars holding the COM component. Also, when
window-close button(X) of IE is pressed same client side javascript
invokes Close.asp pagein a seperate window.

So far fine. No issues.

Issue :

When VBForm client is used, in the custom browser, if user press the
"Exit" button to end the session, all the server side COM components
held in Session vars are released immediately. No issues at all.
However, if the user press the close button(X) of the VBForm, a new
window spawned with Close.asp. However, the server side COM components
are not released.

Result : If website accessed through VBForm client, server side COM
components are not released and hangs there for 20 minutes before they
are released. Causes severe stress on the server, thus users getting
slow response, at times requires a server reboot.

Rootcause :

It was discovered during rootcause analysis and further corroborated
by many ofearlier questions in these forums and elsewhere is that,

when a WebBrowser control client is used (as in the case here), the
moment user close the window and new window is opened (by client side
javascript) with Close.asp, IIS thinks it is a new session. So, it
tries to release the COM components of the new session (though none at
this point). Thus, the scope is lost for the orinigal session and its
session vars hang there until session is timedout after 20 minutes.

The crux of the problem is IE and WebBrowser control behaving
differently w.r.t new windows. For IIS, with IE, the new window
belongs to existing session but with Webbrowser control, the new
window belongs to a new session.

Ever elusive Solution : ?????

So, with this detailed problem description , does any one have a
solution to retain the original session even after opening a new
window from VBForm client.

Any solution(direct or alternate), workaround is very much
appreciated.

Thanks a lot for your help.
-Vetri
Jul 19 '05 #1
1 7982
When IE opens a new window (using File -> New Window, or a link that opens a
new window, or javascript that opens a new window), the new window runs in
the same process space as the old window. Thus it has access to the session
cookie that stores the ASPSessionID, and returns it to the server. The
server does it's work.

It seems that you other application doesn't know about the ASPSession
cookie, or if it does, isn't programmed to send that to the server. IIS then
thinks that this is a new session.

(ASP session state is maintained by the server sending the browser a cookie
that holds the SessionID. The browser needs to return that to the server, so
the server can associate the request with one of the sessions being
maintained on the server. If the browser doesn't return the cookie, then IIS
assumes that this is a new user, and starts a new session).

Cheers
Ken
"Vetrivel" <ve*****@hotmai l.com> wrote in message
news:c0******** *************** **@posting.goog le.com...
: Application architecture : Develop interface between two existing
: systems,
: a. Enterprise CRM system
: b. Web based intranet system.
:
: Environment : Intranet
: Server : IIS and ASP.
: Script : VBScript and Javascript
: Client : 1. IE browser.
: 2. VBForm embedded with WebBrowser control (MS Internet
: control - shdocvw.dll) called from another enterprise application.
:
: Web App : Uses server side business logic implemented in COM
: components. For each ASP session(starts with first ASP page user
: access and ends with last ASP page), server COM components are
: instanciated and held in session variables and liberally used in many
: of the ASP pages. In the last page, there is an "Exit" button, which
: when the user press, client side javascript closes the frames etc and
: invokes a destructor like Close.asp page (in a seperate window)that
: releases the session vars holding the COM component. Also, when
: window-close button(X) of IE is pressed same client side javascript
: invokes Close.asp pagein a seperate window.
:
: So far fine. No issues.
:
: Issue :
:
: When VBForm client is used, in the custom browser, if user press the
: "Exit" button to end the session, all the server side COM components
: held in Session vars are released immediately. No issues at all.
: However, if the user press the close button(X) of the VBForm, a new
: window spawned with Close.asp. However, the server side COM components
: are not released.
:
: Result : If website accessed through VBForm client, server side COM
: components are not released and hangs there for 20 minutes before they
: are released. Causes severe stress on the server, thus users getting
: slow response, at times requires a server reboot.
:
: Rootcause :
:
: It was discovered during rootcause analysis and further corroborated
: by many ofearlier questions in these forums and elsewhere is that,
:
: when a WebBrowser control client is used (as in the case here), the
: moment user close the window and new window is opened (by client side
: javascript) with Close.asp, IIS thinks it is a new session. So, it
: tries to release the COM components of the new session (though none at
: this point). Thus, the scope is lost for the orinigal session and its
: session vars hang there until session is timedout after 20 minutes.
:
: The crux of the problem is IE and WebBrowser control behaving
: differently w.r.t new windows. For IIS, with IE, the new window
: belongs to existing session but with Webbrowser control, the new
: window belongs to a new session.
:
: Ever elusive Solution : ?????
:
: So, with this detailed problem description , does any one have a
: solution to retain the original session even after opening a new
: window from VBForm client.
:
: Any solution(direct or alternate), workaround is very much
: appreciated.
:
: Thanks a lot for your help.
: -Vetri
Jul 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
12997
by: Tony G. | last post by:
Hi there, I have an APS 3 application, running on a Windows 2003 Web edition server - it is a very busy website, and when users are click on certain links (membership info), a new window i opened via javascript. This new window is on the SAME website as where the user is located, but just opened in HTTPS (secure) mode - the user can now examine memberhip terms and continue to buy membership.
0
1027
by: Mike | last post by:
Hi, We have an ASP.NET based website that can run either standalone or within our Win32 client via an embedded IE browser control. The site when running standalone in IE is fine, all works just great, but we are having a probelm when its run within the embedded IE control. We are using Forms authentication and initially all is fine, we login and get into the site, however a problem occurs when we popup a new window (via javascript...
3
1860
by: Jamie | last post by:
Hello, We are opening Web Forms via a workflow system that our company has purchased from an outside vendor. Our problem is when opening multiple pages from the workflow system for the same Web Project (under the same virtual directory). Each time a page or new browser is opened via the workflow system, the pages use the same Session object. Example - 1) Open Page x From workflow system for a sepcific issue
10
2184
by: Li Pang | last post by:
Hi, I created a html page from which I give a link to another web site. The new site is opened in a new window. When I opened multiple windows, they all have the same SessionID. I want ot know how to open the windows with different sessionID. Thanks
18
3436
by: BillE | last post by:
When a user opens a new IE browser window using File-New-Window the integrity of an application which relies on session state is COMPLETELY undermined. Anyone who overlooks the fact that File-New-Window creates an instance of IE in the same process with the same SessionID as the parent window is in big trouble. This fundamentally restricts the usefullness of using session state management. I probably missed it somewhere - can...
26
3607
by: BillE | last post by:
Some ASP.NET applications use Session Variables extensively to maintain state. These should be re-written to use viewstate, hidden fields, querystring, etc. instead. This is because if a user opens a new IE window with Ctrl-N or File-New-Window, BOTH WINDOWS SHARE THE SAME SESSION VARIABLES. This cannot be prevented.
17
5104
by: Zytan | last post by:
I can scroll a WebBrowser to the bottom like so: if (webControl.Document != null) webControl.Document.Body.ScrollTop = int.MaxValue; But, if I include a proper DOCTYPE (for XHTML 1.1 DTD) like so: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
6
1570
by: =?Utf-8?B?QW1pciBUb2hpZGk=?= | last post by:
Hi Our application was using Session variables to store business object for our Web Forms successfully until someone opened a cloned IE window using Control-N key press. The cloned window ends up sharing the same business object as the original window which results in interesting behaviour. For example, if you modify the business object in one window, it is also effectively modified in the other.
1
5343
by: =?Utf-8?B?YWxiZXJ0bHk=?= | last post by:
How can I create a new session from the existing session in asp.net when new IE session is opened using javascript's window.open method or user's hyperlink click? I have a web application which needs two different sessions. When user clicks on a link in the existing session, application pops up new window and the new session should start from here onwards for this instance of IE. I need the old session to continue in the parent IE...
0
8731
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9219
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9081
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8975
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8931
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7819
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4408
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
2395
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2032
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.