如何在服务器端维护会话变量 [英] How to maintain session variables in Server side
本文介绍了如何在服务器端维护会话变量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我们在ASP.NET中有一个应用程序构建,我们有单独的业务层类。
我们在客户端管理会话并希望访问服务器端的会话,当用户登录然后我们进入字典,但正如我所想,在服务器端管理字典,将影响应用程序的性能。
任何人都可以建议在服务器端管理和访问会话信息的好方法吗?
Hi All,
We have an application build in ASP.NET, We have separate business layer class.
We are managing the session at client side and want to access the session at server side, When a user logged in then we make an entry into dictionary, But as i thought, To manage dictionary at server side, will impact the performance of application.
Can any one suggest a good way to manage and access a session information at server side?
推荐答案
会话是服务器端状态管理技术,它将所有会话值存储在服务器端,它只在客户端存储会话ID
。
我认为你必须清楚这一点,这是国家管理的好文章以及如何处理这个问题
ASP.NET中的状态管理 - 简介 [ ^ ]
我希望这能帮到你
Session is a server side state management technique ,It stores all the Session values in Server side ,it stores only theSession ID
in Client Side .
I think you have to be Clear in this,Here is the good article for State management and how to handle that
State Management in ASP.NET - Introduction[^]
I hope this will help you
试试
如何在ASP.Net中使用服务器端状态管理 [ ^ ]
< a href =http://www.codeproject.com/Articles/492397/State-Management-in-ASP-NET-Introduction> ASP.NET中的状态管理 - 简介 [ ^ ]
这篇关于如何在服务器端维护会话变量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文