Common web. config configuration tags

Source: Internet
Author: User
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 >

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.