473,407 Members | 2,326 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

Session Problems with Desktop Shortcuts in IE

I have an issue that I've been encountering in an ASP application I'm
working on. Most of the application is written in ASP, but there is one
page written in ASP.NET. The ASP.NET page needs to have access to the
ASP Session data to run correctly. In order to achieve this I create my
own HTTP request for a certain ASP page with the name of Session
variable that I want is stored in the query string of the request. The
requested ASP page sends back the Session value in the response (you
can see more on this at
http://searchvb.techtarget.com/vsnet...93033,00.html).
This seems to work in general but we have noticed a few difficult to
reproduce problems with this.

When multiple instances of the web app are set up in different virtual
directories and the user creates desktop shortcuts to access each
installation, there appears to be problems with the Session data. When
the user opens up more than one shortcut at once, it looks as though
all the browsers are running under one IEXPLORE.EXE process. This would
explain things if the ASPSESSIONID cookie, which holds the ID for the
Session data to use for a particular user, is held in the shared
process. However, on different servers the Session bug is not always
reproducible. In other words if the user has a desktop shortcuts to
"http://Server1/app1/login.asp" and another to
"http://Server1/app2/login.asp", the Session accessing will have
problems. However if you do the same thing on a different server, that
is "http://Server2/app1/login.asp" and to
"http://Server2/app2/login.asp", the bug will *not* occur. The servers
are running different versions of Windows and IIS, so I'm sure that has
something to do with it, but I just can't figure out what.

Through some experimentation using FireFox and Live HTTP Headers, we
found that sometimes FireFox will contain two ASPSESSIONID cookies,
where the characters after "ASPSESSIONID", but before the '=' sign, are
different. Since both FireFox browsers were running in the same process
and yet somehow correctly handled the Session data, we assumed these
extra characters helped the server distinguish which Session data the
browser needed. However, these cookies have magically stopped appearing
(though FireFox still seems to handle the Session correctly). And I've
never gotten the multiple cookie thing to happen in IE.

Has anyone heard of this issue? Since people use desktop shortcuts
quite a bit, I would have expected this issue to have occurred a number
of times in the past, but I'm having trouble finding any info on it.

Dave

Aug 29 '05 #1
3 2825
Hi,

You need a product, which manages the sessions itself there are several.
This one is hybrid, written using C++, and runs in ASP.NET and ASP..
The SessionID you mention, is even not unique per server. If you reset the
application, the session are regenerated and possibly are the same as
before.
The most fun is that ISP Session, allows to -resume- a session from a URL or
an email even if the browser was closed, totally.
http://www.nieropwebconsult.nl/resumedemo
--
compatible web farm Session replacement for Asp and Asp.Net
http://www.nieropwebconsult.nl/asp_session_manager.htm

"headware" <he******@aol.com> wrote in message
news:11**********************@g44g2000cwa.googlegr oups.com...
I have an issue that I've been encountering in an ASP application I'm
working on. Most of the application is written in ASP, but there is one
page written in ASP.NET. The ASP.NET page needs to have access to the
ASP Session data to run correctly. In order to achieve this I create my
own HTTP request for a certain ASP page with the name of Session
variable that I want is stored in the query string of the request. The
requested ASP page sends back the Session value in the response (you
can see more on this at
http://searchvb.techtarget.com/vsnet...93033,00.html).
This seems to work in general but we have noticed a few difficult to
reproduce problems with this.

When multiple instances of the web app are set up in different virtual
directories and the user creates desktop shortcuts to access each
installation, there appears to be problems with the Session data. When
the user opens up more than one shortcut at once, it looks as though
all the browsers are running under one IEXPLORE.EXE process. This would
explain things if the ASPSESSIONID cookie, which holds the ID for the
Session data to use for a particular user, is held in the shared
process. However, on different servers the Session bug is not always
reproducible. In other words if the user has a desktop shortcuts to
"http://Server1/app1/login.asp" and another to
"http://Server1/app2/login.asp", the Session accessing will have
problems. However if you do the same thing on a different server, that
is "http://Server2/app1/login.asp" and to
"http://Server2/app2/login.asp", the bug will *not* occur. The servers
are running different versions of Windows and IIS, so I'm sure that has
something to do with it, but I just can't figure out what.

Through some experimentation using FireFox and Live HTTP Headers, we
found that sometimes FireFox will contain two ASPSESSIONID cookies,
where the characters after "ASPSESSIONID", but before the '=' sign, are
different. Since both FireFox browsers were running in the same process
and yet somehow correctly handled the Session data, we assumed these
extra characters helped the server distinguish which Session data the
browser needed. However, these cookies have magically stopped appearing
(though FireFox still seems to handle the Session correctly). And I've
never gotten the multiple cookie thing to happen in IE.

Has anyone heard of this issue? Since people use desktop shortcuts
quite a bit, I would have expected this issue to have occurred a number
of times in the past, but I'm having trouble finding any info on it.

Dave


Aug 31 '05 #2
Egbert,

Thanks for the reply. I'm not running multiple servers, but rather
multiple web apps on one server, so I'm not sure how much the tool you
mentioned would help.

After doing further testing I've noticed that the multiple ASPSESSIONID
cookie seems to occur at random but goes away after you reset IIS. For
instance, it started happening yesterday and I did an iisreset.exe and
it stopped. The weird thing is that whether there were more than one
ASPSESSIONID cookie or not, the Session was being managed properly by
IIS. It still somehow knew how to differentiate the Session for each
browser.

So I'm pretty confused at this point about the role that the multiple
ASPSESSIONID cookies play or why this whole issue in general seems to
come and go at random.

Dave

Sep 1 '05 #3

<da**********@gmail.com> wrote in message
news:11**********************@g49g2000cwa.googlegr oups.com...
Egbert,

Thanks for the reply. I'm not running multiple servers, but rather
multiple web apps on one server, so I'm not sure how much the tool you
mentioned would help.
That's the same Idea, that tool can help sharing the session.
After doing further testing I've noticed that the multiple ASPSESSIONID
cookie seems to occur at random but goes away after you reset IIS. For
instance, it started happening yesterday and I did an iisreset.exe and
it stopped. The weird thing is that whether there were more than one
ASPSESSIONID cookie or not, the Session was being managed properly by
IIS. It still somehow knew how to differentiate the Session for each
browser.
that's right. So I'm pretty confused at this point about the role that the multiple
ASPSESSIONID cookies play or why this whole issue in general seems to
come and go at random.
The idea is to create your own unique cookie and stick your session to it.
But then, you also need a way, to relate that to the session, which is not
possible with classic asp.

--
compatible web farm Session replacement for Asp and Asp.Net
http://www.nieropwebconsult.nl/asp_session_manager.htm
Dave


Sep 4 '05 #4

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

Similar topics

0
by: Blake | last post by:
Hello, Does anyone know if there is any way to add a condition to your setup project so that the user can choose if they want a desktop shortcut or a program menu by selecting a checkbox. I...
0
by: Jim | last post by:
I want the users to have the ability to control the installation of shortcuts to an application on the desktop. While a shortcut to the desktop can either be assigned to the Users Desktop folder or...
0
by: Mike Cooper | last post by:
Hi all, I am attempting to deploy a vb.net application. That is working fine. I also configured the installer so shortcuts for the application would appear on the desktop and the user program...
1
by: Richard Johansson | last post by:
Hi, I want to create an option for creating shortcuts to my application on the users desktop and Start menu in the setup. In my deployment project i have created the necessary checkboxes, and...
3
by: Michael D. Murphy | last post by:
Hi, I am searching for a way to creat desktop shortcuts when running the setup files that were created within a VB solution using the setup wizard. Thanks, Michael
2
by: Darko Topolsek | last post by:
Hi. I'm wondering, can I make desktop shortchut through Java code. Thanks. Warm Regards Darko Topolsek
3
by: Henrik | last post by:
I need to get a list of clickable objects on the desktop and their positions. I have written a small program in C# and by using the Win32 function: WindowFromPoint -function I get a handle to the...
1
by: =?Utf-8?B?Umlr?= | last post by:
I down loaded and installed iTunes update. Noted that it took a long time to "finalize". When finished iTunes shortcut had disapeared. When I restarted computer all shortcuts were gone from...
1
!NoItAll
by: !NoItAll | last post by:
Hi: I'm using the following script to find a shortcut with a specific string in it. In the code below the example is the word "font" My problem is that this code looks everywhere EXCEPT the...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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
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...
0
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
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...
0
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
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
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...

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.