ASP.net session state service information [duplicate]

喜欢而已 提交于 2019-12-11 09:07:31

问题


Where can you get information on the ASP.NET State Service e.g. how it works, performance, behaviour characteristics etc. Have looked on internet but cant find in depth information or an article dedicated to the subject. Thanks


回答1:


Programmatically, session state is nothing more than memory in the shape of a dictionary or hash table, e.g. key-value pairs, which can be set and read for the duration of a user's session.

Check following links for more details:

  • "ASP.NET Session State" on MSDN
  • "Session State Overview" on MSDN



回答2:


For SQL Server State Management remember that you don't call Session["Key"] in loops. (Try to avoid that) Because everytime it accesses the session then a roundtrip to sqlserver is made.



来源:https://stackoverflow.com/questions/349398/asp-net-session-state-service-information

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!