473,397 Members | 1,950 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,397 software developers and data experts.

Losing Sessions when Redirecting to a subdirectory

Hello,

I am having some session problems wih an in-house (classic) asp application.
My developers have not been able to figure it out. I am more of a systems
admin type and much of this is over my head. But I will try to explain the
best I can and tell you what I know so far.

First a little summary of environment. I am running iis6 in a web farm with
hardware NLB and 5 servers. Each server is identical. Each server uses a
hosts file so when there is a reference to an internal url it refers back to
itself instead of going to LB. Session timeouts are set for 20min, Parent
Paths are enabled. No special ntfs stuff going on. Using anon iis user

The application is in a subdirectory of the default web site, the "sending"
asp page is in the root of this subdirectory and has a redirect to the
"receiving" asp page in a subdirectory of the apps starting directory. The
application and session variables work on 4 of the 5 servers

Now here are some things I have done and observed

Checked all settings, iis, permissions, app pools, turned off recycling,
etc. I copied all relevant files (the app is not that simple, lots of
includes, sql queries, etc) from server to server and still no luck. .

I could not find rhyme or reason for what is going on so I created a simple
app where one asp page passes a couple session variables to another residing
in same directories as problem apps. Again, we have failure on the problem
server and success on other servers. (But I do have success when both pages
are in same directory)

The only info I have found that looks like this is "application scope."
However all discussions I have read refer to global.asa. I am not using
global.asa.

Where else can I look? What else can I do?

Thanks,
Dean

Aug 27 '06 #1
6 3446
Hello Dean,

Since the problem also occur with your simple test asp application, it
should do nothing with your original ASP application, may be a configration
issue on the special server.

I suggest you may continue to test with the simple test asp application and
add a global.asa to its root folder with following code:

Sub Session_OnStart

Session("Test")="Hello"

End Sub

In the asp page locating sub folder, use following code to access the
session

<%

Response.Write Session("Test")

%>

Will it give correct value?

(The sub folder should be a "pure" folder, not a virtual folder defined in
IIS Manager)

Sincerely,

Luke Zhang

Microsoft Online Community Support
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.

Aug 28 '06 #2
Hi Luke,

I tried what you suggested. I get a blank page. But lets make sure I am
doing this correctly. I will give you the virtual paths I am using:

domain.com/ARS contains the sending asp page

domain.com/ARS/NewExtranet contains the receiving asp page

Variable not being passed with that (When both are in ARS or NewExtranet it
works)

I put your global.asa in ARS and the asp page in NewExtranet - got a blank
page browsing the asp page (also when both files are in NewExtranet)

Is that what you wanted to see?

More Notes: Both folders are "real" and directory structure in web is same
as physical folder structure (no little globe icons). ARS is a folder that
had been converted to an application. All subfolders are normal.

anything else?

thanks,
Dean



"Luke Zhang [MSFT]" <lu******@online.microsoft.comwrote in message
news:Cz**************@TK2MSFTNGXA01.phx.gbl...
Hello Dean,

Since the problem also occur with your simple test asp application, it
should do nothing with your original ASP application, may be a
configration
issue on the special server.

I suggest you may continue to test with the simple test asp application
and
add a global.asa to its root folder with following code:

Sub Session_OnStart

Session("Test")="Hello"

End Sub

In the asp page locating sub folder, use following code to access the
session

<%

Response.Write Session("Test")

%>

Will it give correct value?

(The sub folder should be a "pure" folder, not a virtual folder defined in
IIS Manager)

Sincerely,

Luke Zhang

Microsoft Online Community Support
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
==================================================

This posting is provided "AS IS" with no warranties, and confers no
rights.

Aug 28 '06 #3
I got the app to work, but don't ask me how cuz I don't know. Just started
working while playing with your files.

I did change the IP to remove it from NLB network. do you think the tcp/ip
stack could interfere with sessions?
"Luke Zhang [MSFT]" <lu******@online.microsoft.comwrote in message
news:Cz**************@TK2MSFTNGXA01.phx.gbl...
Hello Dean,

Since the problem also occur with your simple test asp application, it
should do nothing with your original ASP application, may be a
configration
issue on the special server.

I suggest you may continue to test with the simple test asp application
and
add a global.asa to its root folder with following code:

Sub Session_OnStart

Session("Test")="Hello"

End Sub

In the asp page locating sub folder, use following code to access the
session

<%

Response.Write Session("Test")

%>

Will it give correct value?

(The sub folder should be a "pure" folder, not a virtual folder defined in
IIS Manager)

Sincerely,

Luke Zhang

Microsoft Online Community Support
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.
==================================================

This posting is provided "AS IS" with no warranties, and confers no
rights.

Aug 29 '06 #4
Hello Dean,

Thank you for the update. changing the IP may cause series of changes in
current system. I am not sure if these fixed the problem. (tcp/ip stack
wouldn't interfere with sessions, but a IIS restart or change in code will
do that). Have you tried to add the server to NLB again?
Sincerely,

Luke Zhang

Microsoft Online Community Support
This posting is provided "AS IS" with no warranties, and confers no rights.

Aug 29 '06 #5
Added it back yesterday -- still working
"Luke Zhang [MSFT]" <lu******@online.microsoft.comwrote in message
news:Pr**************@TK2MSFTNGXA01.phx.gbl...
Hello Dean,

Thank you for the update. changing the IP may cause series of changes in
current system. I am not sure if these fixed the problem. (tcp/ip stack
wouldn't interfere with sessions, but a IIS restart or change in code will
do that). Have you tried to add the server to NLB again?
Sincerely,

Luke Zhang

Microsoft Online Community Support
This posting is provided "AS IS" with no warranties, and confers no
rights.

Aug 29 '06 #6
Hi,

Thank you the confirmation. We can think it "resolved" temporarily. If
there is any further problems, please feel free to let us know on the
community.

Sincerely,

Luke Zhang

Microsoft Online Community Support
This posting is provided "AS IS" with no warranties, and confers no rights.

Aug 30 '06 #7

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

Similar topics

9
by: Bartosz Wegrzyn | last post by:
I need help with sessions. I createt set of web site for nav with authorization. first I go into main.php which looks like this: <?php //common functions include_once '../login/common.php';...
14
by: Guy Hocking | last post by:
Hi there, I am having trouble with an ASP login that uses sessions to control access to certain pages. However the sessions are not being carried accross upon using response.redirect. I realise...
9
by: Jimmy Junatas | last post by:
When we open a window (using client-side jscript ie. window.open("/Site/Popup.aspx?...",...)) from Page1.aspx, the called page Popup.aspx does not have access to the Session variables present in...
5
by: fbwhite | last post by:
I know this issue has been brought up many times, but I have tried many of the solutions to no avail. I wanted to give my specific case to see if someone could be of any help. We are using the...
3
by: ACaunter | last post by:
Hi all, I'm wondering why I keep losing my session variables all the time. I've set the timeout to be an hour, but for some reason randomly i keep losing everything.. what could be causing this??...
9
by: Adrian Parker | last post by:
We have a website that works everywhere but on a few PCs on this one site.. Asp.Net 1.1 Server = Windows 2003 Client = XP In the web.config we use - cookieless="false" in the browser settings...
41
by: amygdala | last post by:
Hello all, I have posted a similar question in comp.lang.php in the past, but haven't had any response to it then. I kinda swept the problem under the rug since then. But I would really like to...
1
by: KidQuin | last post by:
I am having problems with session value between pages. Happening in both firefox and IE7. I go between page by links so I know it's not header changes. I use session_start as the first line on the...
5
by: chromis | last post by:
Hi there, I've recently been updating a site to use locking on application level variables, and I am trying to use a commonly used method which copies the application struct into the request...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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.