I. <sessionstate>
1. cookieless
True or false: determines whether cookies are used as the identification key. The default value is false, indicating that cookies are used.
2. Mode
There are four values: Off | inproc | StateServer | sqlserver. Off indicates that the session state is not started; inproc indicates that the session is stored on its own server; StateServer indicates that the session will be stored on an independent state server ); sqlserver stores sessions on the specified SQL Server.
3. stateconnectionstring
When the mode is StateServer, specify the remote server connection string in TCPIP = server: PORT format.
4. sqlconnectionstring
When mode is sqlserver, specify a valid database connection string to save the session Status in sqlserver.
5. Timeout
The default value is 20 minutes. < Configuration >
< System . Web >
< Sessionstate
Mode = "Inproc"
Stateconnectionstring = "TCPIP = FIG: 42424"
Sqlconnectionstring = "Data Source = 127.0.0.1; user id = sa; Password = 123"
Cookieless = "False"
Timeout = "20"
/>
</ System. Web >
</ Configuration >
Ii. <deleetask>
You can add the database connection string and the account and password used to this section.
< Configuration >
< Deployments >
< Section Name = "Appsettings" />
</ Deployments >
< Appsettings >
< Add Key = "Get_dsn" Value = "Driver = {mirosoft access Driver (*. mdb)}; DBQ = D: \ data. mdb" />
</ Appsettings >
</ Configuration >
Iii. <globalization>
Specify the regionalization settings, such as the encoding method of the requirement or response result. In Chinese, the gb2312 code must be added.
< Configuration >
< Deployments >
< Section Name = "Globalization" />
</ Deployments >
< System . Web >
< Globalization Requestencoding = "Gb2312" Responseendcoding = "Gb2312" />
</ System. Web >
</ Configuration >