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

IIS6 Restart

P: n/a
Hi,

I heared that one of IIS6 new capabilities is it can keep all session state
variables when I restart the IIS.

When I change web.config and save it during the asp.net application runtime,
the application looses all session variables.

Am I missing some settings or this is by design?

Thanks,

Allan
Nov 18 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Typically when an ASP.Net app restarts it resets everything, as is the case
when the web.config file is updated. It could be you've heard about being
able to store the ASP.Net session state in a SQL Server store. I believe in
this scenario it can survive an application restart, but I haven't toyed
with that in a year or so, so I'm not exactly sure anymore.

Hope this helps,
Mark Fitzpatrick
Microsoft MVP - FrontPage

"Ali.M" <Ha**@Spam.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
Hi,

I heared that one of IIS6 new capabilities is it can keep all session state variables when I restart the IIS.

When I change web.config and save it during the asp.net application runtime, the application looses all session variables.

Am I missing some settings or this is by design?

Thanks,

Allan

Nov 18 '05 #2

P: n/a
This is a known behavior.

If the Session information is configured to be stored in SQL Server, then
you can avoid resetting of the Session information.

Pl. try Im not 100% sure but I did try something like before for testing and
i believe it worked for me.

Good Luck
"Ali.M" <Ha**@Spam.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
Hi,

I heared that one of IIS6 new capabilities is it can keep all session state variables when I restart the IIS.

When I change web.config and save it during the asp.net application runtime, the application looses all session variables.

Am I missing some settings or this is by design?

Thanks,

Allan

Nov 18 '05 #3

P: n/a
you can store you session in another server runing asp.net StateService
when you asp.net appDomain Recyled, you can retrieve your session object
from the StateServer

"Ali.M" <Ha**@Spam.com> дϢ
news:#3**************@TK2MSFTNGP11.phx.gbl...
Hi,

I heared that one of IIS6 new capabilities is it can keep all session state variables when I restart the IIS.

When I change web.config and save it during the asp.net application runtime, the application looses all session variables.

Am I missing some settings or this is by design?

Thanks,

Allan

Nov 18 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.