473,387 Members | 1,532 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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 (HttpApplication.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 4199
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 (HttpApplication.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.Abandon" in global.asa in the Session_OnStart, I
used , <%@ ENABLESESSIONSTATE=False %> in a wrapper ASP file that in turn did
a response.redirect, 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 "Negotiation 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
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
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,...
3
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...
11
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...
8
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...
4
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...
3
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...
6
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...
15
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...
3
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
0
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...

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.