您的位置:首页 > 编程语言 > ASP

教你50招提升ASP.NET性能(二十一):避免使用会话状态

2013-08-20 17:27 375 查看
(39)Avoid using session state

招数39:

避免使用会话状态

Where possible, you should try and avoid using session state. Whilst using one web server, performance is usually not a problem. This changes as soon as you need to scale to multiple servers, as different, and usually slower, techniques need to be used.
如果可能,你应该试着避免使用会话状态。在使用一台Web服务器时,性能通常不是一个问题。一旦你需要扩展到多态服务器就会变的不同,比平时慢,而且需要使用技巧。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐