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

Session Data Lost on Response.Redirect with IIS 6.0

All-

I have a Framework 2.0 application running under Windows 2003 Server
and IIS utilizing the default application pool.

On my development machine (XP w/ IIS 5.1) the code runs perfectly. But
when deployed recompiled under 2003/6.0, every time the application
gets to a Response.Redirect (happens right away when a user logs in),
the Session data is lost.

What I have investigated is this:
1. The application is not restarting
2. We've already deleted and recreated the virtual folder and
application
3. No wierd permission issues that I can see

I've seen lots of posts suggesting using Server.Transfer, but
Response.Redirect works fine under development. This is wierd. Any help
is appreciated.

-David

Jun 2 '06 #1
2 2664
It could be your Application Pool settings.

If you are running in IIS6 mode, your web sites will be using Application
Pools. If your app pools are set to run using multiple processes, then cache
& session information will be inconsistently accessible to aspx pages. Check
the number of processes for your IIS 6 app pool. If it's 1, then that's the
cause. Or if different virtual dirs on your site have different pools, that
could also cause the results you see.
--Peter
--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"de*****@dataprise.com" wrote:
All-

I have a Framework 2.0 application running under Windows 2003 Server
and IIS utilizing the default application pool.

On my development machine (XP w/ IIS 5.1) the code runs perfectly. But
when deployed recompiled under 2003/6.0, every time the application
gets to a Response.Redirect (happens right away when a user logs in),
the Session data is lost.

What I have investigated is this:
1. The application is not restarting
2. We've already deleted and recreated the virtual folder and
application
3. No wierd permission issues that I can see

I've seen lots of posts suggesting using Server.Transfer, but
Response.Redirect works fine under development. This is wierd. Any help
is appreciated.

-David

Jun 2 '06 #2
Thanks Peter,

Good advice. I actually found the problem. Would you believe that my
test server had an underscore in it - something that is not recommended
by MSFT, but can be overridden. This, along with a relatively recent
security patch on Windows 2003 from MSFT, effectively blocks
page-to-page redirects on the session side. Bottom line, don't name
your servers running IIS with anything else but standard symbols.
Thanks again.

Peter wrote:
It could be your Application Pool settings.

If you are running in IIS6 mode, your web sites will be using Application
Pools. If your app pools are set to run using multiple processes, then cache
& session information will be inconsistently accessible to aspx pages. Check
the number of processes for your IIS 6 app pool. If it's 1, then that's the
cause. Or if different virtual dirs on your site have different pools, that
could also cause the results you see.
--Peter
--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"de*****@dataprise.com" wrote:
All-

I have a Framework 2.0 application running under Windows 2003 Server
and IIS utilizing the default application pool.

On my development machine (XP w/ IIS 5.1) the code runs perfectly. But
when deployed recompiled under 2003/6.0, every time the application
gets to a Response.Redirect (happens right away when a user logs in),
the Session data is lost.

What I have investigated is this:
1. The application is not restarting
2. We've already deleted and recreated the virtual folder and
application
3. No wierd permission issues that I can see

I've seen lots of posts suggesting using Server.Transfer, but
Response.Redirect works fine under development. This is wierd. Any help
is appreciated.

-David


Jun 6 '06 #3

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

Similar topics

6
by: Al Jones | last post by:
This is a repost form the vbscript newgroup - if this isn't the appropriate group would you point me toward one that is. Basically, I seem to be losing session data part way though preparing an...
3
by: Carpe Diem | last post by:
Hello I have an aspx page that loses Session("user") value after a few minutes even after I set <sessionState mode="InProc" cookieless="false" timeout="300"> in web.config and wrote function...
3
by: William | last post by:
Hi I have an ASP.NET application that connects to an Access database. Everything works fine except for the Session object. Data in the session object is lost after I've made a call to the...
10
by: GreggTB | last post by:
I've got an page (LOGIN.ASPX) that receives the user's login information. During the page load, it checks the credentials against a database and, if validation is successful, creates an instance of...
3
by: catweezle2010 | last post by:
Hello NG, I have three files (default.aspx, search.aspx and work.aspx). The way is: login on default (if session is newsession). The loginname I write into as sessionvariable (username). So I...
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...
0
by: Dornel | last post by:
Hi all, My session variables are lost when I using response.redirect at first time... In the second time, the problem not exists. example in page 1(create session and redirect): ...
5
by: google | last post by:
I have a website that has a asp secured members only aria that keeps session variables to check if someone is logged in or not (if session variables are not there then redirect to logon screen) but...
5
by: lyealain | last post by:
<% If Session("username") = "" Then Response.Redirect("/CLS/Login.asp") End If Dim conn Dim connectstr Dim db_name, db_username, db_userpassword Dim db_server Dim res
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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,...

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.