web.config文件的内容大体如此:
 
<globalization requestEncoding="gb2312" responseEncoding="gb2312"/>
 <sessionState mode="InProc" cookieless="false" timeout="20"/>
     <httpRuntime maxRequestLength="47185920">
     </httpRuntime>
  </system.web>
</configuration>
 
注意在文件中的位置,
讲解:
<sessionState mode="InProc" cookieless="false" timeout="20"/>
//cookieless="false",不使用cookies
//timeout="20",会话时间为20分钟,单位是分钟,这里可自行修改
<httpRuntime maxRequestLength="47185920">
//站点默认上传的最大文件