ASP.NET中的会话 [英] Sessions in asp.net

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

问题描述

大家好,

会话中有哪些不同的存储对象?

Hi every one,,

What are the different storage objects in sessions ?

推荐答案

如果仅关注服务器端会话,则实际上需要考虑4种基本类型.它们是InProc,用于将会话状态存储在Web服务器上的内存中.将会话存储在单独的ASP.NET状态服务中的StateServer; SQLServer,用于将会话状态存储在SQL Server数据库中;和自定义"允许您创建自定义存储提供程序.
If you are only concerned with server side sessions, there are effectively 4 basic types that you need to consider. These are InProc, which stores the session state in memory on the web server; StateServer which stores the session in a separate ASP.NET state service; SQLServer for storing session state in a SQL Server database; and Custom which allows you to create a custom storage provider.


是一篇很好的文章,讨论了客户端和服务器端状态管理.
This is very good article which discusses both client and server side state management.


您的问题尚不清楚.您是否在询问可以在会话中保留哪些类型的对象?如果是,则可以保留会话中的几乎所有类型.
Your question is not clear. Are you asking about what types of objects can be kept on session? If yes, you can keep almost every type in session.


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

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