By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,480 Members | 763 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,480 IT Pros & Developers. It's quick & easy.

I keep losing session state on Prod server

P: n/a
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
Share this Question
Share on Google+
4 Replies


P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.