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

I keep losing session state on Prod server

I have been writing ASP.NET apps since the RTM build and have never seen
this. I built a simple app that uses session variables on my DEV laptop.
All runs well. I have a simple toggle routine that checks the status of a
Session variable. I keep losing the value of the variable. When I trace the
page it is there, but it is gone next postback.

Also, I use three tier objects and store my DataManager object in a session
variable. It is gone as well whenever I postback.

I went to the Prod IIS server and made sure my Virtual Dir is set as an app
and that "Preserve Session State" was checked.

What else can I do? Why am I losing session state every page?

Thanks,
Keith
Nov 18 '05 #1
4 2383
Keith,

Are you using IIS6.0? If so check your AppPool to make sure your aspnet
worker processes are not recycling. If they are recycling you will lose your
session state.

John

"Keith-Earl" <k@k.com> wrote in message
news:eN**************@TK2MSFTNGP09.phx.gbl...
I have been writing ASP.NET apps since the RTM build and have never seen
this. I built a simple app that uses session variables on my DEV laptop.
All runs well. I have a simple toggle routine that checks the status of a
Session variable. I keep losing the value of the variable. When I trace the page it is there, but it is gone next postback.

Also, I use three tier objects and store my DataManager object in a session variable. It is gone as well whenever I postback.

I went to the Prod IIS server and made sure my Virtual Dir is set as an app and that "Preserve Session State" was checked.

What else can I do? Why am I losing session state every page?

Thanks,
Keith

Nov 18 '05 #2
John, thank you. I really should post my config first time. No, we are
running W2k server so it's IIS 5.0.

I loaded FileMon (freeware) and see where I am getting a "Buffer Overflow"
from IIS when I try to browse the pages. I am pretty sure it is not our
Symantec Corporate hitting the Global.asax file. That was pretty common
back in the Classic ASP days, reseting our session.

On my DEV platform I turn on Trace and see I get the same SESSION ID no
matter what page I hit. I get a new SESSIONID on the PROD box. Does not
matter if I go to a new page or hit REFRESH on same page.

Thanks for your help

Keith

"John Haynes" <jh*******************@mckinleycapital.com> wrote in message
news:eU**************@TK2MSFTNGP09.phx.gbl...
Keith,

Are you using IIS6.0? If so check your AppPool to make sure your aspnet
worker processes are not recycling. If they are recycling you will lose your session state.

John

"Keith-Earl" <k@k.com> wrote in message
news:eN**************@TK2MSFTNGP09.phx.gbl...
I have been writing ASP.NET apps since the RTM build and have never seen
this. I built a simple app that uses session variables on my DEV laptop. All runs well. I have a simple toggle routine that checks the status of a Session variable. I keep losing the value of the variable. When I trace

the
page it is there, but it is gone next postback.

Also, I use three tier objects and store my DataManager object in a

session
variable. It is gone as well whenever I postback.

I went to the Prod IIS server and made sure my Virtual Dir is set as an

app
and that "Preserve Session State" was checked.

What else can I do? Why am I losing session state every page?

Thanks,
Keith


Nov 18 '05 #3
what do your application logs indicate? This is always the first place to
start.

--
Regards,
Alvin Bruney
[ASP.NET MVP http://mvp.support.microsoft.com/default.aspx]
Got tidbits? Get it here... http://tinyurl.com/27cok
"Keith-Earl" <k@k.com> wrote in message
news:e6**************@TK2MSFTNGP12.phx.gbl...
John, thank you. I really should post my config first time. No, we are
running W2k server so it's IIS 5.0.

I loaded FileMon (freeware) and see where I am getting a "Buffer Overflow"
from IIS when I try to browse the pages. I am pretty sure it is not our
Symantec Corporate hitting the Global.asax file. That was pretty common
back in the Classic ASP days, reseting our session.

On my DEV platform I turn on Trace and see I get the same SESSION ID no
matter what page I hit. I get a new SESSIONID on the PROD box. Does not
matter if I go to a new page or hit REFRESH on same page.

Thanks for your help

Keith

"John Haynes" <jh*******************@mckinleycapital.com> wrote in message
news:eU**************@TK2MSFTNGP09.phx.gbl...
Keith,

Are you using IIS6.0? If so check your AppPool to make sure your aspnet
worker processes are not recycling. If they are recycling you will lose

your
session state.

John

"Keith-Earl" <k@k.com> wrote in message
news:eN**************@TK2MSFTNGP09.phx.gbl...
> I have been writing ASP.NET apps since the RTM build and have never
> seen
> this. I built a simple app that uses session variables on my DEV laptop. > All runs well. I have a simple toggle routine that checks the status
> of a > Session variable. I keep losing the value of the variable. When I
> trace

the
> page it is there, but it is gone next postback.
>
> Also, I use three tier objects and store my DataManager object in a

session
> variable. It is gone as well whenever I postback.
>
> I went to the Prod IIS server and made sure my Virtual Dir is set as an

app
> and that "Preserve Session State" was checked.
>
> What else can I do? Why am I losing session state every page?
>
> Thanks,
> Keith
>
>



Nov 18 '05 #4
Nothing, not a darn thing. I have removed both 1.0 and 1.1 Framework on
PROD server and am currently reinstalling 1.1, will let you know how it
goes...

BTW, I get the Buffer Overflow on a clean install. Also, copied the folder
to several other IIS installs and they all work...

Thanks!!!

Keith
"Alvin Bruney [MVP]" <vapor at steaming post office> wrote in message
news:uW*************@TK2MSFTNGP12.phx.gbl...
what do your application logs indicate? This is always the first place to
start.

--
Regards,
Alvin Bruney
[ASP.NET MVP http://mvp.support.microsoft.com/default.aspx]
Got tidbits? Get it here... http://tinyurl.com/27cok
"Keith-Earl" <k@k.com> wrote in message
news:e6**************@TK2MSFTNGP12.phx.gbl...
John, thank you. I really should post my config first time. No, we are
running W2k server so it's IIS 5.0.

I loaded FileMon (freeware) and see where I am getting a "Buffer Overflow" from IIS when I try to browse the pages. I am pretty sure it is not our
Symantec Corporate hitting the Global.asax file. That was pretty common
back in the Classic ASP days, reseting our session.

On my DEV platform I turn on Trace and see I get the same SESSION ID no
matter what page I hit. I get a new SESSIONID on the PROD box. Does not matter if I go to a new page or hit REFRESH on same page.

Thanks for your help

Keith

"John Haynes" <jh*******************@mckinleycapital.com> wrote in message news:eU**************@TK2MSFTNGP09.phx.gbl...
Keith,

Are you using IIS6.0? If so check your AppPool to make sure your aspnet
worker processes are not recycling. If they are recycling you will lose

your
session state.

John

"Keith-Earl" <k@k.com> wrote in message
news:eN**************@TK2MSFTNGP09.phx.gbl...
> I have been writing ASP.NET apps since the RTM build and have never
> seen
> this. I built a simple app that uses session variables on my DEV

laptop.
> All runs well. I have a simple toggle routine that checks the status
> of

a
> Session variable. I keep losing the value of the variable. When I
> trace
the
> page it is there, but it is gone next postback.
>
> Also, I use three tier objects and store my DataManager object in a
session
> variable. It is gone as well whenever I postback.
>
> I went to the Prod IIS server and made sure my Virtual Dir is set as an app
> and that "Preserve Session State" was checked.
>
> What else can I do? Why am I losing session state every page?
>
> Thanks,
> Keith
>
>



Nov 18 '05 #5

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

Similar topics

3
by: Vinay Joseph Mathew | last post by:
Hi, I am having a problem with the Session State. I am running IIS 5 on Win2K. We are using 4 webservers with a load balancer. One of the webservers also acts as a State Server. Here is the...
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...
1
by: gencode | last post by:
I seem to be losing session information randomaly, session data will be set back to nothing from time to tome, sometimes it is after less than a minute and sometimes it wont lose it at all. More...
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...
7
by: Erik | last post by:
I have an application that uses sessions variables a lot but one I publish the application on the prod server these variables are lost. The application is written i c# 2.0 and I've set the...
0
by: none | last post by:
Hi, I've got a problem with losing session state in ASP.NET version 2. It does it intermittently - sometimes it tanks - and sometimes it works OK. I've got the ASP.NET state service started...
0
by: Thina | last post by:
My application uses SQL session state. In Test Server the session state would be pointing to Test DB Server, similarly the Prod Server to Prod DB Server. Is there a way to programatically change...
1
by: bhasky | last post by:
We have two production server, Prod server 1 giving error Session Timout before 90min where it has been set 90 in global.asa Differences Prod Ser 1 : Windows 2003, No Service Pack Installed...
4
by: Arthur Dent | last post by:
Hello all, I have some issue which is driving me crazy in testing my site... Every now and then, the session variables in my site all get cleared out. I assume this is because of something...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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?
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
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
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
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...

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.