首页 > Web开发 > 详细

ASP.NET web.config 配置里部分参数详细说明

时间:2019-11-16 09:50:10      阅读:116      评论:0      收藏:0      [点我收藏+]

Session配置

 

      <!--
            <identity
                impersonate = "false" [true|false]
                userName = "" [String]
                password = "" [String]
            />
        -->
        <identity impersonate="false" userName="" password="" />
        <!--
            <machineKey
                validationKey = "AutoGenerate,IsolateApps" [String]
                decryptionKey = "AutoGenerate,IsolateApps" [String]
                decryption = "Auto" [AUTO | DES | 3DES | AES]
                validation = "HMACSHA256" [MD5 | SHA1 | 3DES | AES | HMACSHA256 | HMACSHA384 | HMACSHA512 | alg:algorithm_name]
            />
        -->
        <machineKey validationKey="AutoGenerate,IsolateApps" decryptionKey="AutoGenerate,IsolateApps" validation="HMACSHA256" decryption="Auto" compatibilityMode="Framework20SP1" dataProtectorType="" applicationName="" />
        <!--
            <sessionPageState
                historySize = "9" [number]
            />
        -->
        <sessionPageState historySize="9" />
        <!--
            <sessionState
                mode = "InProc" [Off | InProc | StateServer | SQLServer | Custom]
                stateConnectionString = "tcpip=loopback:42424" [String]
                stateNetworkTimeout = "10" [in Seconds][number]
                sqlConnectionString = "data source=localhost;Integrated Security=SSPI" [String]
                sqlCommandTimeout = "30" [in Seconds][number]
                sqlConnectionRetryInterval = "0" [in Seconds][number]
                customProvider = "" [String]
                cookieless = "" [UseUri | UseCookies | AutoDetect | UseDeviceProfile]
                cookieName = "ASP.NET_SessionId" [String]
                timeout = "20" [in Minutes][number]
                allowCustomSqlDatabase = "false" [true|false]
                compressionEnabled = "false" [true|false]
                regenerateExpiredSessionId = "true" [true|false]
                partitionResolverType = "" [String]
                useHostingIdentity = "true" [true|false]
                sessionIDManagerType = "" [String]
                >
                <providers>
                    <add
                        name = "" [String, Required, Collection Key]
                        type = "" [String, Required]
                    />
                </providers>

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

  

  身份验证和授权

 

ASP.NET web.config 配置里部分参数详细说明

原文:https://www.cnblogs.com/mqingqing123/p/11870478.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!