473,770 Members | 5,977 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How do I prevent new window from sharing session vars?

Guy
Is there a way to prevent new browsers windows from sharing session
variables with the original window?

Our team has an ASP.Net app that lets users analyze portfolio risk
given certain portfolio constructions. The set weights to certain
asset types, hit calculate and see some results. Our problem is that
users want to compare different situations side by side. So they
either hit CTRL+N or Choose "File, New" launch a new browser window,
change their inputs and recalculate. Change things some more and hit
calculate again. But since they spawned Window 2 from Window 1, and
we store the inputs in session variables, the new inputs from Window 2
show up in the calcs for Window 1. Is there anyway around this?

We have too much data to store on the querystring by the way.
Guy
Nov 19 '05 #1
2 2234
Guy,

You are out of luck here. New session involves a new process, and you cannot
launch a new process unless you have elevated scripting privs.

It may be slow, but consider going with ViewState instead.

-- Alex Papadimoulis

"Guy" wrote:
Is there a way to prevent new browsers windows from sharing session
variables with the original window?

Our team has an ASP.Net app that lets users analyze portfolio risk
given certain portfolio constructions. The set weights to certain
asset types, hit calculate and see some results. Our problem is that
users want to compare different situations side by side. So they
either hit CTRL+N or Choose "File, New" launch a new browser window,
change their inputs and recalculate. Change things some more and hit
calculate again. But since they spawned Window 2 from Window 1, and
we store the inputs in session variables, the new inputs from Window 2
show up in the calcs for Window 1. Is there anyway around this?

We have too much data to store on the querystring by the way.
Guy

Nov 19 '05 #2
you should always design for this case. use a transaction guid to track a
set of session values. on postback lookup the values for the transaction
guid in the postback (you might want to use sqlsessions to reduce memory
load).

-- bruce (sqlwork.com)


"Guy" <su*****@yahoo. com> wrote in message
news:df******** *************** ***@posting.goo gle.com...
| Is there a way to prevent new browsers windows from sharing session
| variables with the original window?
|
| Our team has an ASP.Net app that lets users analyze portfolio risk
| given certain portfolio constructions. The set weights to certain
| asset types, hit calculate and see some results. Our problem is that
| users want to compare different situations side by side. So they
| either hit CTRL+N or Choose "File, New" launch a new browser window,
| change their inputs and recalculate. Change things some more and hit
| calculate again. But since they spawned Window 2 from Window 1, and
| we store the inputs in session variables, the new inputs from Window 2
| show up in the calcs for Window 1. Is there anyway around this?
|
| We have too much data to store on the querystring by the way.
|
|
| Guy
Nov 19 '05 #3

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

Similar topics

0
1430
by: james | last post by:
I am new to php and need some help getting the session variables into include files. (after-thought, Sorry for the drawn out post but I really, really need help....;) Here's what I'm doing.. I have a php request_form that I use 2 different ways: by itself (url directly to the form) and as an include to be displayed in existing php pages. This form uses POST to another php_script that performs serverside validation and db write. If all...
2
5690
by: somaboy mx | last post by:
I'm working on a site which contains a lot of legacy ASP VBScript code. My intention is to recreate and expand the site's functionality in PHP5. I'm doing this in phases, so in the meantime there will be ASP's running alongside PHP scripts - this is not a problem since the host is an IIS with PHP support. For some parts session variables need to be stored and retrieved, and I was wondering if there's some way of accessing a session...
9
3648
by: Pack Fan | last post by:
I've noticed that session variables will persist on Mac IE even after all browser windows have been closed. One must quit the program to clear the session variables. This presents a security risk for my session variable based security scheme. Basically, the risk is that a user will login to my site, close the window when done and allow someone else to come up to the machine, go back to my site and be logged into the previous user's...
1
2796
by: Bart Plessers \(artabel\) | last post by:
Hello, Currently developping a site, where I use some session variables. The site is located at my home computer. Because I have a dynamic IP adress, I use no-ip (www.no-ip.org) to have my own custom domain name (pvo.no-ip.org) My ISP blocks port 80, so website runs at port 4040 The service no-ip offers "Mask / Cloaking Options": every request to my domain is "wrapped in a frame", so end user can only see one URL in browser.
1
7988
by: Vetrivel | last post by:
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
4
2052
by: Cowboy \(Gregory A. Beamer\) | last post by:
Background: ------------- The idea started as a single sign on type of application. Having tested it before, I knew we could institute single sign on using the same Authentication Cookie name (in this case "AuthenticationCookie" -- yeah, original, I know) and the same machine keys for the applications. <authentication mode="Forms"> <forms name="AuthenticationCookie" path="/" loginUrl="login.aspx" protection="All" timeout="10" />
4
2610
by: Daniel | last post by:
Hi I am having a problem sharing session between SSL and non-SSL asp.net pages I have F5 BigIP with sticky sessions working fine, but the problem is tha sticky session applies at the port level (80 vs. 443) so when a user goes t a SSL page I lose session vars because it's on another server on the farm When the user stays on the same server for both non-SSL and SSL the sessio is shared OK Has anyone come across this problem and are...
1
11582
by: Earl Teigrob | last post by:
I did a ton of searching to try and find a simple solution to this issue and finally wrote my own, which I am sharing with everyone. In my searching, I did find a very complete and robust solution at http://weblogs.asp.net/asmith/archive/2003/09/15/27684.aspx but it was far more complex then I needed. (I got lost trying to figure it all out). Therefore, here goes my simple "web dialog box with parent event handler fireing" solution. ...
18
3397
by: Gleep | last post by:
I've searched google intensely on this topic and it seems noone really knows how to approch this. The goal I don't want clients to give out their usernames and passwords to friends, since the site relies on subscrption fees. Sessions ID's are matched between the browser and the server. So a users can login with same username and password and those sessions are tracked individually. Some suggest create table fields with the session ID...
0
9425
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
10005
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
9871
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
8887
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
6679
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
5313
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...
1
3972
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
2
3576
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2817
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.