REDIRECT to ASP site causes ASP SESSION to end after 2nd new browser window opened - Bizarre!!

Posted on 2003-03-10
Medium Priority
Last Modified: 2006-11-17
This is a bizarre issue that I can't resolve.

We have a web product on a dedicated server that uses ASP pages (and global.asa)
Some of the sites on this server use anonymous access and some use just challange/response, but this makes no difference to this issue

The application operates in one main browser window, but also opens some new browser windows to perform some functions and show information pages

If you use favourites or type in the URL to the browser to gain access to the site , it works fine and lots of windows can be open/closed as necessary as the application is used, and the ASP session remains intact

BUT.... if the site is called via a redirect from another web site (internal or external), the ASP session is created and remains intact for the main window, but after a second new browser window is opened the ASP session is killed. After the first new window is opened, everything is fine and the main browser window operates as normal with multiple page requests causing no problem - it's only when the second new window is opened that the ASP session is immediately killed.

This problem is perfectly consistent and recreatable. It is very obvious when anonymous login is not enabled, because the challenge response re-requests a username and password to access the server.



Question by:marke1
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
  • 2
  • +2

Expert Comment

by:Sashi Rachabattula
ID: 8102462
session will end if window is closed

Expert Comment

by:Sashi Rachabattula
ID: 8102470
new window wont get the session value

Expert Comment

by:Sashi Rachabattula
ID: 8102755
follow up pls..
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!


Author Comment

ID: 8102783

Thanks for the comments

The main browser window is always open in the background. It is the new info browser windows that open on top that cause the problem, but only when the site is opened from another site, not if the site is accessed via favourites or typed into the address bar.

The application is fine - the issue I need resolving is why the sessions is terminated just because the site is called via a redirect...



Expert Comment

by:Sashi Rachabattula
ID: 8102851
send the code pls..

Author Comment

ID: 8103025
Thanks for the comment

The redirect from a web page is a simple <A href=.....> tag

The new windows get opened (from the main browser window) using window.open script (pop up information windows)

I don't think the code is the issue the application works fine if called via the address bar on the browser- I think it relates to something more general like a setting in IIS which is affected when the application is called via an external link.


LVL 10

Accepted Solution

apollois earned 500 total points
ID: 8108278
Hi marke1,

>>> I think it relates to something more general like a setting in IIS which is
>>>affected when the application is called via an external link.

I don't think so.  Whether the user clicks on a link in the browser window, or types it in the address window, it makes no difference, provided the URLs are identical.  You are using the word "redirect".  Do you mean ASP redirect as in:

     Response.redirect "somepage.asp"

Or simply a HTML link on a web page like:

     <a href="somepage.asp">Go to Some Page</a>

Here are some troubleshooting steps:

1.     Verify that the URL in the link is identical to that typed in the address window, including any querystring variables.
2.     Post your code that handles session management, particularly the start of a new session.
3.     Post the code that launches the second window that kills the session.
4.     How do you know the session is "killed"?

Best Regards,

Assisted Solution

lavinder earned 500 total points
ID: 8109191
hi mark

1) can you tell how you came to know, that the problem is occurring only at this point

...it's only when the second new window is opened that the ASP session is immediately killed...

2) as far as i know, redirecting/typing url/favourites do not have any impact on session variables.

3) session.timeout ? is that a possible reason.
4) have a look at this link http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnasdj00/html/asp1100.asp

 listening to your and other experts' followups...

happy programming!!

LVL 58

Expert Comment

ID: 9352952
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

Split Points - apollois / lavinder

Please leave any comments here within the next seven days.
EE Cleanup Volunteer

Author Comment

ID: 9356327
happy to split the points as suggested

LVL 58

Expert Comment

ID: 9356376
At the bottom of the page where you have Collaboration there is a Split option, click that then its all self explanatory.

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I recently decide that I needed a way to make my pages scream on the net.   While searching around how I can accomplish this I stumbled across a great article that stated "minimize the server requests." I got to thinking, hey, I use more than one…
This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Suggested Courses

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question