473,804 Members | 3,464 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

SessionId and New Window in IE

Hi,

When a user of Web application makes "File - New - Window" or Ctrl+N in IE,
the user obtains 2 windows IE having the same SessionId. This generates a
problem when, in one Web form, we use a variable of session to store a
dataset. The fact that the user browses with 2 windows on the same
application and the same session can give unexpected results.

Is it possible to have Id of window which would enable to name the variable
of session with this Id and, then, have a single name by opened window with
the same SessionId?

Thank you
Nov 19 '05 #1
4 1854
Is the problem with syncronous writes to the dataset? If so you could write
'lock(Session) { ... }' for c# or 'SyncLock Session ... End SyncLock' for VB
around the code that does the writes.

"Patrick Paquin" <pp******@hotma il.com> wrote in message
news:eH******** ******@TK2MSFTN GP14.phx.gbl...
Hi,

When a user of Web application makes "File - New - Window" or Ctrl+N in IE, the user obtains 2 windows IE having the same SessionId. This generates a
problem when, in one Web form, we use a variable of session to store a
dataset. The fact that the user browses with 2 windows on the same
application and the same session can give unexpected results.

Is it possible to have Id of window which would enable to name the variable of session with this Id and, then, have a single name by opened window with the same SessionId?

Thank you

Nov 19 '05 #2
No, It doesn't this. I use dataset to do the all the operations that can
require reload page, and finally save the result in the database. If the
user browses in the new opened window, he can modify the value in the
dataset. And after, if the user uses the first window, the data in the
dataset can doesn't match with the state of the web form.

"Matt Dockerty" <Ps reply to group> a écrit dans le message de
news:O9******** ******@tk2msftn gp13.phx.gbl...
Is the problem with syncronous writes to the dataset? If so you could write 'lock(Session) { ... }' for c# or 'SyncLock Session ... End SyncLock' for VB around the code that does the writes.

Nov 19 '05 #3
Don't fully get it but I think something you could do is get a new GUID on
the first visit to the page and suffix that to the name of the session
variable. Would that help? (haven't tested this)...

if(!this.IsPost Back) {
string suffix = Guid.NewGuid(). ToString();
ViewState.Add(" Suffix", suffix);
} else {
string suffix = (string)ViewSta te["Suffix"];
}
DataSet userDataSet = (DataSet)Sessio n["UserDataSe t" + suffix];
"Patrick Paquin" <pp******@hotma il.com> wrote in message
news:ec******** ******@TK2MSFTN GP14.phx.gbl...
No, It doesn't this. I use dataset to do the all the operations that can
require reload page, and finally save the result in the database. If the
user browses in the new opened window, he can modify the value in the
dataset. And after, if the user uses the first window, the data in the
dataset can doesn't match with the state of the web form.

"Matt Dockerty" <Ps reply to group> a écrit dans le message de
news:O9******** ******@tk2msftn gp13.phx.gbl...
Is the problem with syncronous writes to the dataset? If so you could write
'lock(Session) { ... }' for c# or 'SyncLock Session ... End SyncLock'

for VB
around the code that does the writes.


Nov 19 '05 #4
I have run into this issue.
It is because Ctrl-N starts IE in the same process space.
If they start it from the desktop icon then it gets its own process.
(Firefox does not though - it always runs inthe same process.)

This issue is bigger than just session.
Your cookies are shared too - including the forms authentication ticket.

Your app should still work correctly in either window though.
Not sure why you are having unexpected results. All of the same data is
available to that user.
Now if that user logs off one screen the other should still have him logged
in.
--
Joe Fallon


"Patrick Paquin" <pp******@hotma il.com> wrote in message
news:eH******** ******@TK2MSFTN GP14.phx.gbl...
Hi,

When a user of Web application makes "File - New - Window" or Ctrl+N in
IE,
the user obtains 2 windows IE having the same SessionId. This generates a
problem when, in one Web form, we use a variable of session to store a
dataset. The fact that the user browses with 2 windows on the same
application and the same session can give unexpected results.

Is it possible to have Id of window which would enable to name the
variable
of session with this Id and, then, have a single name by opened window
with
the same SessionId?

Thank you

Nov 19 '05 #5

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

Similar topics

8
2006
by: Brad Simon | last post by:
I have written a shopping cart using ASP .NET (VB). It has been running quite successfully on a site for about a year or so. I use the SessionID as the key to hold information on the shopping cart. I have copy / pasted the code into a new site. Everything is working, EXCEPT for the shopping cart holding the SessionID. I have watched the variable, and each time I hit the 'Update' button in a datalist, the session ID changes. That is...
4
8841
by: Andy Fish | last post by:
Hi, I have an asp.net application that is using Forms Authentication and maintaining http session state using cookies in the normal way. when the user clicks the logout button I do this: Session.Clear(); Session.Abandon(); FormsAuthentication.SignOut();
0
1025
by: ashvartsman | last post by:
Hi all, I need to start from my ASP.NET web application a new browser that will work with the same application but with new SessionID. It worked fine in "cookieless" mode for session state. But then for security reason we switched to "cookie" mode, everything stopped to work. Now each time when I start a new browser window from the application IE keeps the same sessionID for the new instance. As a result this page shares the same...
3
2069
by: dotnettester | last post by:
Hi, Is there a way, I can get a new sessionid without user closing the browser window? I have a webpage, which logs user input and sessionid. If the user does not close the browser and if someone else uses the same browser window, I can not differentiate between different user inputs, because the sessionid is same. Is there a way, I can force a new sessionid, when a certain page is viewed?
11
2323
by: rayala | last post by:
Hi all, I am having very weird problem in my Outlook I am running my web application from with in Outlook.I found a strange problem that it is creating different sessionId if i open a new window using window.open from with in my application.I am pulling my hair all along but no solution so far.Hope you guys can help me out. my application works fine when i run this in IE.It is Outlook2003
6
2073
by: Rob Meade | last post by:
Hi all, I've just put some code together (cobbled is a phrase I like to use) - to handle a secure login to a web based application. It's not exactly rocket science, a session is created, its ID and user ID are written to the database, each page that requires authentication checks to see if there is a current identity (ie a session already) and if so then tries to match that to the one in the database - if everythings ok - great - more...
3
1703
by: Rolf Welskes | last post by:
Hello, the following sample application in ASp.net 2.0 / VS2005 (Webproject). in an testPage.aspx ................ <P><A href="01Test01A.aspx">Link to 01Test01 A</A></P> <P><A href="01Test01B.aspx">Link to 01Test01 B</A></P>
4
8397
by: Jerad Rose | last post by:
I have searched high and low, and I can't find anybody having this problem, so I'm sure it's something really simple I'm overlooking. In fact, I've seen many posts of people trying to set up the exact problem I'm having. My ASP.NET (2.0) SessionID is being reset every time I start a new browser. I have tested this with a totally clean page, and totally clean Web.config file, so that I know I'm using all of the default settings (mode =...
4
2673
by: GaryDean | last post by:
Bringing up a new browser instance when using an asp.net application using forms authentication, of course, initiates a new session with a new sessionID and requires authentication again. But, I see that browsing to that same asp.net application using a new tab in ie7 or firefox uses the same SessionID and does not require separate authentication. This means that the same session can be on two different pages at the same time. Is...
0
9572
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,...
0
10562
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10319
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9132
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...
1
7608
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6845
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
5508
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...
0
5639
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3803
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.