473,480 Members | 1,876 Online
Bytes | Software Development & Data Engineering Community
Create 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.com). 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 2628
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 enableSessionState="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.com). 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.com 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.com). 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
1154
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...
3
7306
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...
1
2952
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...
3
6133
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
1433
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...
8
5337
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...
5
2562
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...
2
1961
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...
5
5874
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...
0
7039
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
7037
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,...
0
7080
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...
1
6735
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...
0
5326
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,...
0
2992
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...
0
1296
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 ...
1
558
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
176
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...

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.