会话存储值的位置 [英] Where Session stores the value

查看:72
本文介绍了会话存储值的位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用"InProc"会话状态,并且设置了

I am using "InProc" Session State, and i set

Session["DataTable"] = dt


然后请告诉我,Session在哪里存储您的价值.在服务器还是在客户端以及在哪里?

请告诉我.


Then pls tell me, where Session stores your value. at server or at client and where?

Please tell me.

推荐答案

会话变量存储在服务器上. Cookies存储在客户端.
Session variables are stored at the Server. Cookies are stored at the Client.


Cookie保存在客户端.
默认情况下,会话状态值和信息存储在ASP.NET进程内的内存中.一种替代方法是将会话数据存储在状态服务器中,该状态服务器将会话数据保存在单独的进程中,并在关闭和重新启动ASP.NET应用程序后将其保留.另一种选择是将会话数据存储在SQL Server数据库中,该数据可以由多个Web服务器共享.
有关更多信息,请遵循此:
http://msdn.microsoft.com/en-us/library/ms178587.aspx [ ^ ]
希望对您有帮助.
如果有帮助,请不要忘记将其标记为答案. :)
Cookies saves at client side.
And by default, session state values and information are stored in memory within the ASP.NET process. One alternative is to store session data in a state server, which keeps session data in a separate process and retains it if the ASP.NET application is shut down and restarted. Another alternative is to store session data in a SQL Server database, where it can be shared by multiple Web servers.
for more follow this :
http://msdn.microsoft.com/en-us/library/ms178587.aspx[^]
Hope this will help you.
Don''t forget to mark as answer if it helps. :)


<a href="http://msdn.microsoft.com/en-us/library/75x4ha6s.aspx">http://msdn.microsoft.com/en-us/library/75x4ha6s.aspx</a>[<a href="http://msdn.microsoft.com/en-us/library/75x4ha6s.aspx" target="_blank" title="New Window">^</a>]



跟随此链接,您将获得所有答案...



follow this link u get all answer...


这篇关于会话存储值的位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆