Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > File-New-Window creates shared session variables

Thread Tools

File-New-Window creates shared session variables

Posts: n/a
My application relies on session variables to keep track of the currently
selected customer.

When a new window is opened using File-New-Window in Internet Explorer, the
session variables are shared between the two instances of IE. When this
happens, various problems occur, such as orders getting assigned to the
wrong customer.

How can I best manage this problem?


Reply With Quote
Posts: n/a
You'll have these issues *any* time you use global variables in *any*
type of application. It's best to use local variables whenever
possible. In this translates to passing your variables around
from form to form. Use querystring variables or form variables
instead. Sorry I don't have a decent solution, but one more thought:
I think your issue may get worse when IE7 introduces "tabbed
browsing"... which makes it much easier to "open new windows". Maybe
there's an IE setting that tells IE to start a new session when a new
window is opened(?)

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
new CGI::Session creates a new session every visit. GRRR!!! TonyV Perl Misc 19 03-19-2007 06:45 AM
Global Shared functions, shared variables Imran Aziz ASP .Net 1 08-22-2005 06:43 PM
Shared, why not a 'Local Shared' (re: Session and ViewState dislike) ben ASP .Net 3 11-15-2004 03:04 PM
Shared Public Variables and Shared Methods Joe Fallon ASP .Net 3 07-16-2004 07:11 AM
Re: Class public shared Variables vs. Application Variables in ASP.NET avnrao ASP .Net 0 05-07-2004 05:28 AM