且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

关于asp.net中的会话

更新时间:2023-09-11 23:20:10

如果使用单个会话变量,将如何存储数据?通过串联?如果是,那么您想在应用程序中的每一次和任何地方进行串联并解析值吗?

因此,请使用多个会话变量.
If you use single session variable, how will you store data? by concatenation? If yes then you want to do concatenation & parse the values every time & everywhere in your application?

So use multiple session variables.


范围没有区别-完全取决于您对它们的处理方式.
如果您打算在信息方面花很多钱,那么这是个坏主意.
看一下MSDN:它可以帮助您做出决定. http://msdn.microsoft.com/en-us/library/z1hkazw7 (v = vs.71).aspx [
There is no difference in terms of scope - it depends entirely on what you do with them.
If you are planning on stroign lots on info, then it is a bad idea.
Have a look at MSDN: it may help you decide. http://msdn.microsoft.com/en-us/library/z1hkazw7(v=vs.71).aspx[^] It covers Session, as well as cookies and view state storage.