ASP.NET web.config 配置里部分参数详细说明
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>
身份验证和授权