Prev: How to log more info on System.Web.HttpException: Request time
Next: Set qry string value based on radio btn selected
From: Markus Weber (Megalith GmbH) on 18 Mar 2010 08:42 Hello! I use classic ASP and have the problem that when user opens different Browser windows the Session will be shared. Means values saved in a session in one Windows are available also in the other window. I tried different command line options in IE (other browsers have same behaviour) without success. Has someone an idea how to disable shared sessions? Thanks in advance and regards Markus
From: Dan on 18 Mar 2010 09:03 "Markus Weber (Megalith GmbH)" <m.weber(a)megalith-software.de> wrote in message news:uVbXYipxKHA.4492(a)TK2MSFTNGP05.phx.gbl... > Hello! > > I use classic ASP and have the problem that when user opens different > Browser windows the Session will be shared. Means values saved in a > session in one Windows are available also in the other window. I tried > different command line options in IE (other browsers have same behaviour) > without success. Has someone an idea how to disable shared sessions? > > Thanks in advance and regards > Markus You can't disable it on the server side - there's no way to tell if the session is shared between browser tabs/windows or not. In IE8 the user has to go to the File menu and choose New Session, or use the -nomerge command line option when starting a new instance. -- Dan
From: Bob Barrows on 18 Mar 2010 09:06 Markus Weber (Megalith GmbH) wrote: > Hello! > > I use classic ASP and have the problem that when user opens different > Browser windows the Session will be shared. Means values saved in a > session in one Windows are available also in the other window. I > tried different command line options in IE (other browsers have same > behaviour) without success. Has someone an idea how to disable shared > sessions? > Sorry ... no. It seems your definition of a "session" differs from the ASP definition From: http://msdn2.microsoft.com/en-us/library/ms524664 "ASP assigns the user ID by means of an HTTP cookie, which is a small file stored on the client's computer." The same user on a machine cannot start multiple ASP sessions. You will need to create your own user-session tracking mechanism. -- HTH, Bob Barrows
From: Evertjan. on 18 Mar 2010 17:31 Adrienne Boswell wrote on 18 mrt 2010 in microsoft.public.inetserver.asp.general: > Gazing into my crystal ball I observed "Markus Weber \(Megalith GmbH\)" > <m.weber(a)megalith-software.de> writing in > news:uVbXYipxKHA.4492(a)TK2MSFTNGP05.phx.gbl: > >> Hello! >> >> I use classic ASP and have the problem that when user opens different >> Browser windows the Session will be shared. Means values saved in a >> session in one Windows are available also in the other window. No, no, session variables are NOT aviable in windows, they are only aviable on the server. >> I tried >> different command line options in IE (other browsers have same >> behaviour) without success. Has someone an idea how to disable shared >> sessions? There are no shared sessions, there is just one ASP session. If you disable all cookies, including session cookies, every page will start it's own asp-session. Or you could use different browsers, like Chrome and Firefox. Perhaps starting up secret windows in Chrome could do the trick. Try! Seen from the server side, AS WE DO IN THIS ASP NG, just do not use the session and it's variables, and you will have the same effect. > > As others have said, there is nothing you can do about it, so you need > to find some way of working with it, instead of trying to work around > it. I know that sounds like a platitude. > > Opening other tabs or windows is client side, and ASP has no idea about > it. Client side script would detect it, but don't try doing something > dumb like disabling right click - users can always get around that kind > of foolishness. Quite so. > What exactly are you trying to prevent that occurs from a "shared" > session? Indeed. -- Evertjan. The Netherlands. (Please change the x'es to dots in my emailaddress)
From: Markus Weber (Megalith GmbH) on 22 Mar 2010 10:05
Hello! Thanks for all your help, the "-nomerge" approche seems working. Thanks again and regards Markus |