不用,iis会检测到修改并自动重新加载网站,session会丢失。
参考资料:
http://stackoverflow.com/questions/178342/what-happens-when-i-edit-web-config
http://stackoverflow.com/questions/613824/how-to-prevent-an-asp-net-application-restarting-when-the-web-config-is-modified