Default Values for <sessionState>

  • Thread starter Thread starter headware
  • Start date Start date
H

headware

If you totally omit the <sessionState> element from Web.config, what
values are used? What are the default values?

Thanks,
Dave
 
InProc mode, use cookies, 20 min session timeout.


--
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin


headware said:
If you totally omit the <sessionState> element from Web.config, what
values are used? What are the default values?

Thanks,
Dave

__________ Information from ESET NOD32 Antivirus, version of virus
signature database 4262 (20090720) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com


__________ Information from ESET NOD32 Antivirus, version of virus signature database 4262 (20090720) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com
 
InProc mode, use cookies, 20 min session timeout.

--
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]http://msmvps.com/blogs/egoldin


If you totally omit the <sessionState> element from Web.config, what
values are used? What are the default values?

__________ Information from ESET NOD32 Antivirus, version of virus
signature database 4262 (20090720) __________
The message was checked by ESET NOD32 Antivirus.

__________ Information from ESET NOD32 Antivirus, version of virus signature database 4262 (20090720) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

Thanks for the input. I found a Microsoft page (http://
msdn.microsoft.com/en-us/library/h6bb9cz9.aspx) that states the
following:

---------------------------------------------------
The following default <sessionState> element is not explicitly
configured in the Machine.config file or in the root Web.config file.
However, it is the default configuration that is returned by the
application.

<sessionState
mode="InProc"
stateConnectionString="tcpip=127.0.0.1:42424"
stateNetworkTimeout="10"
sqlConnectionString="data source=127.0.0.1;Integrated
Security=SSPI"
sqlCommandTimeout="30"
customProvider=""
cookieless="UseCookies"
cookieName="ASP.NET_SessionId"
timeout="20"
allowCustomSqlDatabase="false"
regenerateExpiredSessionId="true"
partitionResolverType=""
useHostingIdentity="true">
<providers>
<clear />
</providers>
</sessionState>
 
Back
Top