473,837 Members | 1,536 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

window.open() and unwanted session state (urgent)

Hello Developers!

A lot has been written about Java Script window.open() function and lost
session state.
But the most recent version of IE seems to handle it correctly.

But now I have an opposite problem: how to open a new browser window so it
*does not* share the session state with the first (parent) window?

I have a web application which must open a new popup window, but new session
must be created.

OK, I *cannot* use cookie-less sessions.

I already tried using a special page and loading popup content into either
<framesetor <iframe>. I tried modifying URL slightly by adding a subdomain
(eg. popup.domain.co m). All for nothing - IE7 always carries session ID to
the new window.

Please help before I pull all my hairs out.

Tomasz J
Nov 18 '07 #1
3 2657
The problem is that when you open a new browser window to the site, the
session cookie is still there (after all, it's the same client). So, there's
no easy way around this. What you could try is in the window that is opened
via script, have that page with the enableSessionSt ate="false" directive in
the @Page declaration.

--Peter
"Inside every large program, there is a small program trying to get out."
http://www.eggheadcafe.com
http://petesbloggerama.blogspot.com
http://www.blogmetafinder.com

"Tomasz J" wrote:
Hello Developers!

A lot has been written about Java Script window.open() function and lost
session state.
But the most recent version of IE seems to handle it correctly.

But now I have an opposite problem: how to open a new browser window so it
*does not* share the session state with the first (parent) window?

I have a web application which must open a new popup window, but new session
must be created.

OK, I *cannot* use cookie-less sessions.

I already tried using a special page and loading popup content into either
<framesetor <iframe>. I tried modifying URL slightly by adding a subdomain
(eg. popup.domain.co m). All for nothing - IE7 always carries session ID to
the new window.

Please help before I pull all my hairs out.

Tomasz J
Nov 19 '07 #2
popup.domain.co m should work unless the cookie domain is *.domain.com

-- bruce (sqlwork.com)

Tomasz J wrote:
Hello Developers!

A lot has been written about Java Script window.open() function and lost
session state.
But the most recent version of IE seems to handle it correctly.

But now I have an opposite problem: how to open a new browser window so it
*does not* share the session state with the first (parent) window?

I have a web application which must open a new popup window, but new session
must be created.

OK, I *cannot* use cookie-less sessions.

I already tried using a special page and loading popup content into either
<framesetor <iframe>. I tried modifying URL slightly by adding a subdomain
(eg. popup.domain.co m). All for nothing - IE7 always carries session ID to
the new window.

Please help before I pull all my hairs out.

Tomasz J

Nov 19 '07 #3
Hi Tomasz,

Could you please depict more about why you need to make the new browser
window *does not* share the session state with the first (parent) window?
If you need to do this because session state locking, then disabling or use
read-only session state in the new browser window should work for you.
Regards,
Walter Wang (wa****@online. microsoft.com, remove 'online.')
Microsoft Online Community Support

=============== =============== =============== =====
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
=============== =============== =============== =====

This posting is provided "AS IS" with no warranties, and confers no rights.

Nov 19 '07 #4

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

Similar topics

4
1172
by: Elliot M. Rodriguez | last post by:
I am seeking some advice on an issue I am facing concerning session state. I have an app that relies on 2 session values being set at the start. These session values set the stage for data that is pulled from the remaining pages of the app. At one stage, a user enters data that will change one of these 2 values. Here is where the problem lies. At this stage, when the data is changed, a new browser window will open,
3
7344
by: Michelle Stone | last post by:
hi al i have "variab1 = window.open ("a.aspx", "helloworld"); i do this inside a RegisterStartupScrict ("key", "<script language=javascript>******</script>"); where ***** is hte javascript comman i need to access variab1 from some other forms (to close it from another link from the parent's parent's parent's page). i figured out that the best way to do this is to store this javascript variable in a session variable now comes the...
1
2968
by: SteveComplex | last post by:
I'm currently working on a project developing a web application that makes heavy use of 3rd-party controls, popup windows and frames ( not my design I hasten to add ). Some of the pages make use of several user controls embedded in a tab control. Needless to say that the page size can be somewhat on the large size, including a lot of information being stored in viewstate. I'm currently looking for a solution to resolve the problem of...
3
6155
by: harikrishnan.kamalakannan | last post by:
Hi, When a open an asp page from a modal window through window.open, my session values of parent(the screen that invoked the modal window) are lost. Please this is urgent.
4
1454
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
8
5365
by: Andrew Teece | last post by:
Hope someone can help. We are trying to deploy an ASP.Net 2.0 application to a 3-node webfarm. The application uses the ReportViewer control in local mode, hence we need session state. Because we dont wan't a single point of failure we use SQL Session State. I have setup a persistant sql session state database on a SQL 2000 server (this is a cluster in production, so no SPOF) I have setup our web.config files to include; " <sessionState...
5
2581
by: jediknight | last post by:
Is it possible to programmatically stop multiple browsers from getting the same session state? The problem I have is that whenever I open a new browse using File- I would like to stop this from happening and redirect to the homepage. Thanks in advance!
2
1986
by: tourmob | last post by:
Hello guys! I am using JavaScript's window.open(...) to pop up a extra window for my users back office. The main site uses session objects for authentication. The problem is: when I close the new window that I have opend with window.open(), the main window suddently looses his session. Typicaly this don't happens with Firefox, but it does with IE7. Is there anything I can do about? Is there a workaround for IE?
5
5904
by: =?Utf-8?B?QmlsbHkgWmhhbmc=?= | last post by:
Hi All, I am using asp.net session state service to store session. The concurrent online user will be almost 2000. Could asp.net session state service afford this? Is there any limitation about asp.net session state service? -Billy
0
9839
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
9682
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,...
1
10621
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
10268
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
9396
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
6998
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();...
0
5846
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4474
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3123
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.