|
Home > Archive > IIS Server > January 2004 > Session State Problems with IIS 6
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Session State Problems with IIS 6
|
|
| JBailey 2004-01-28, 2:38 am |
| Hello,
We are currently running quite a few ASP.NET websites. We have recently
migrated to IIS 6 and are having problems getting Session State to run
correctly. Previously, under IIS 5 we specified all of our session state
settings in the web.config file. But now, under IIS 6, these settings seem
to be ignored. I have unchecked the use session state box under the IIS 6
admin tool for the specific web apps we are troubleshooting but things still
arent working correctly.
What is the hierarchy of session state settings being applied? I have an
idea in my head that it is the following, applied from top down.
IIS6
|_web.config
|_machine.config
Is this correct? If not, what is the best way to go about troubleshooting
this?
Thanks,
JBailey
| |
| Egbert Nierop \(MVP for IIS\) 2004-01-28, 3:39 am |
| "JBailey" <abc@123.com> wrote in message
news:Ojsc7Vb5DHA.3308@TK2MSFTNGP11.phx.gbl...quote:
> Hello,
>
> We are currently running quite a few ASP.NET websites. We have recently
> migrated to IIS 6 and are having problems getting Session State to run
> correctly. Previously, under IIS 5 we specified all of our session state
> settings in the web.config file. But now, under IIS 6, these settings seem
> to be ignored. I have unchecked the use session state box under the IIS 6
> admin tool for the specific web apps we are troubleshooting but things
stillquote:
> arent working correctly.
>
> What is the hierarchy of session state settings being applied? I have an
> idea in my head that it is the following, applied from top down.
>
>
individual Page settings
|_web.config
|_machine.config
|_IIS6quote:
>
> Is this correct? If not, what is the best way to go about troubleshooting
> this?
This is correct.
If you want to be sure the correct web.config is applied, just make some
bugus appsetting entries..
</system.web>
<appSettings>
<add key="bogus" value="blah"/>
</appSettings>
NameValueCollection values =
System.Configuration.ConfigurationSettings.AppSettings;
Response.Write(values["blah"]);
quote:
> Thanks,
> JBailey
>
>
| |
| JBailey 2004-01-29, 7:36 am |
| Would I need to do this for each website? I am not the developer, I am just
the IIS admin here so please give me a step by step.
Thank you,
JBailey
"Egbert Nierop (MVP for IIS)" <egbert_nierop@nospam.com> wrote in message
news:uGy6qub5DHA.2740@TK2MSFTNGP09.phx.gbl...quote:
> "JBailey" <abc@123.com> wrote in message
> news:Ojsc7Vb5DHA.3308@TK2MSFTNGP11.phx.gbl...
seem[QUOTE][color=darkred]
6[QUOTE][color=darkred]
> still
> individual Page settings
> |_web.config
> |_machine.config
> |_IIS6
troubleshooting[QUOTE][color=darkred]
> This is correct.
>
> If you want to be sure the correct web.config is applied, just make some
> bugus appsetting entries..
> </system.web>
> <appSettings>
> <add key="bogus" value="blah"/>
> </appSettings>
>
>
> NameValueCollection values =
> System.Configuration.ConfigurationSettings.AppSettings;
> Response.Write(values["blah"]);
>
>
>
|
|
|
|
|