Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Session Data Lost on Response.Redirect with IIS 6.0

Reply
Thread Tools

Session Data Lost on Response.Redirect with IIS 6.0

 
 
deisner@dataprise.com
Guest
Posts: n/a
 
      06-02-2006
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

 
Reply With Quote
 
 
 
 
=?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?=
Guest
Posts: n/a
 
      06-02-2006
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




"(E-Mail Removed)" 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
>
>

 
Reply With Quote
 
 
 
 
deisner@dataprise.com
Guest
Posts: n/a
 
      06-06-2006
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
>
>
>
>
> "(E-Mail Removed)" 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
> >
> >


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Session Timeout problems-web.confg session state and IIS session s =?Utf-8?B?Um9iSEs=?= ASP .Net 4 04-11-2007 04:52 PM
How can i share asp session data with asp.net session data far asl via DotNetMonster.com ASP .Net 3 03-23-2005 05:13 AM
Session lost with IIS Content Rating SteveS ASP General 0 05-04-2004 02:55 PM
Re: lost session values, not Session Alvin Bruney [MVP] ASP .Net 0 03-02-2004 06:35 AM
Session contents lost despite Session.Timeout = 3000; and <sessionState mode="InProc" cookieless="false" timeout="300"> Carpe Diem ASP .Net 3 02-23-2004 07:10 PM



Advertisments