473,806 Members | 2,346 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

new browser window and Sessions

Hello,

When the user starts my .aspx page and then opens a new browser window
(i.e. through menu or Ctrl + N hotkey) I don't want both pages to share
the same Session (HttpApplicatio n.Session).

I noticed that if both browser windows are started through the "Start"
menu this Session sharing does not occur.

In my application each page needs its own connection to a corba object
(object is stored in Session). However starting multiple windows using
the New Window Menu item causes the pages to share the same connection -
messages get confused.

Anyone know how to force each page to use a different session?

TIA :),

David.

Nov 16 '05 #1
2 4221
Well, this is a problem with opening new browser windows manually..

a similir discussion is going here

http://www.experts-exchange.com/Web/..._21085546.html

HTH
Sudhakar
http://one.mvpblog.com

"David" wrote:
Hello,

When the user starts my .aspx page and then opens a new browser window
(i.e. through menu or Ctrl + N hotkey) I don't want both pages to share
the same Session (HttpApplicatio n.Session).

I noticed that if both browser windows are started through the "Start"
menu this Session sharing does not occur.

In my application each page needs its own connection to a corba object
(object is stored in Session). However starting multiple windows using
the New Window Menu item causes the pages to share the same connection -
messages get confused.

Anyone know how to force each page to use a different session?

TIA :),

David.

Nov 16 '05 #2
ATS
To all,

I am having the same problem. And it is NOT an option to make the
javascript app that creates the iframes into a application that spawns new IE
sessions. I HAVE to have the JavaScript somehow FORCE the iframes to use new
sessions.

In my case, I'm trying to make a "master page" control many iframes that
each in turn calls a CGI app. I'm finding that the iframes are ending up
reusuing the same "session" as the "master page", no matter what I do.

If the iframes were working to what I need, then on the server, there
would be another instance of the CGI app launched, and visible under the Task
Manager, for each iframe my "master page" launches.

But with this problem, the "session" is being reused by, and on the server
one can clearly see that the CGI app get laucnhed only ONCE, and each iframe
has to wait for the other, until one by one, each iframe gets a chance at the
server.

I've followed MSDN directions to disable "session", "Session state" in IIS
directly with the Virtual Directory setting by unchecking th "Session"
checkbox. I've used "Session.Abando n" in global.asa in the Session_OnStart , I
used , <%@ ENABLESESSIONST ATE=False %> in a wrapper ASP file that in turn did
a response.redire ct, I tried client side document.cookie , I went into IE's
Tools - Internet Options - Privacy, and set "No cookies allowed", and then
some. But despite this, when the CGI app is called from the multiple iframe
objects, IIS queues them all up into a single "instance like" call, where one
using task manager can clearly see the CGI app being called ONCE and only
ONCE for all of the iframes. This causes the iframes to wait around until one
at a time, each gets a chance by IIS to do its work. Strangely though, if I
"refresh" my "master page" while an instance of my CGI app is running, I will
PROPERLY get IIS to launch another.

I've also followed the discussion on the following link:

http://www.experts-exchange.com/Web/..._21085546.html

Please do not ask/state "if you can give us your actual requirements then we
might be able to help you", as like David, I have clearly stated my "actual
requirements".

As for ideas to follow. I think that somehow putting HTTP information into
the URL, one might be able to override IE reusing the same session ID.
Another idea is to use the "Negotiatio n protocol" in the URL to force each
iframe to use a different domain user id as such:
http://domain%5cuser:password@Server...ectory/App.asp will also FORCE
IE to not reuse the session id, as it won't be able to, but in that latter
case, Microsoft has turned this feature of IE "off" as of XP - SP2, for which
I'm trying to find the MSDN article that denotes how to turn it back on, and
even if on, I would then have to create an account for each iframe, which
would be impracticle.

So, any ideas would help,

Nov 16 '05 #3

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

Similar topics

2
3574
by: Simon | last post by:
Hi Folks, Any help here would be much appreciated. i have a page session_write.php /////////////////// session_start(); $_SESSION = 'AAA'; print("sA". $_SESSION);
2
3936
by: | last post by:
>> When I open a second browser window from the first, it uses the same session with first!!! > This is not true. session_id is unique for each combination of browser/url. I believe this too, but you can see: 1. try http://tassadar.physics.auth.gr/~chameleon/Books/ 2. right-click in one menu link and "open in new window". 3. in 2nd browser window click greek flag 4. in 1st browser window click "Programming" everything in 1st browser...
3
4756
by: Kevin Thorpe | last post by:
I've hit a problem with sessions. If I have a document relying on sessions which has a link target=_blank then the new window inherits the session from its parent (in IE). However, if I embed an instance of IE in a VBA form in Excel and click on the link, the new window doesn't inherit the session. I have no idea why this should happen at all since both instances of the browser have access to the same cookies.
11
5081
by: David Lozzi | last post by:
Hello All, I am having an issue with thus far one computer on my client's web site. If the user loads the shopping cart and then closes all browser windows, then opens them back up, goes back to the site, the shopping cart information is there! The shopping cart info is only loaded into a session variable! There are no cookies on the site to store this information. Am I mistaken in believing when a browser window is closed that the session...
8
1833
by: greg | last post by:
Hi Maybe it is a newbie question but... When I have two browser windows even popups I noticed they share ALL cookies even session ones What can I use to distinguish between them? Is asp.net session is such a thing?
4
1453
by: Stefan | last post by:
Hello, I am running .NET SQL Session state (V 1.1 blah blah) on a IIS6 server. The problem is that my application spawns a new window via javascript once the user logs in. The user logs in on the main page and the info is stored in a session. However, on some browsers, the act of opening a new window, creates
3
1549
by: tshad | last post by:
I have noticed that if I open an IE session and log onto my site. I can open another browser session and that browser will have same session variables as the first. This causes problems for my application. The only way around the problem is to close all the browsers and then start a new browser session. I don't seem to have the same problem with Mozilla or Firefox.
6
3948
by: hemant.singh | last post by:
Hi all, I am trying to get a way by which I'll know exactly when user goes out of my site by clicking on close button in browser, So that w/e user click close button in browser, I can send a signal to server. This seems to be achievable with body unload events, but it is little too much, as even if user navigate within my site, this event will be generated, this can be avoided by handling onclick of each link, so that I'll know exactly...
15
2005
by: news-server.maine.rr.com | last post by:
Hi, I'm looking for sample code or your input, on how to create a new window with a new session, while the parent window remains in its original session. For example, a link from the parent window would open a new window in a new session, but the parent session would still be valid. Is this possible?
3
4234
by: spoonybard | last post by:
Hi Everyone, I have a .Net 2.0 C# web application that has important information stored in Sessions that needs to be deleted when the user closes the browser. I know of three ways a user can close their browser: Presses "X" button in top right of browser Presses Alt-F4 From browser menu selects File -> Close With javascript I am able to detect that the user presses the X button. Since Javascript is client side and ASP.Net is server...
0
9719
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
9597
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10618
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
10366
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
10371
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,...
1
7649
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6877
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
2
3850
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3008
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.