关于在asp.net配置文件和会话 [英] Regarding Profile and session in asp.net

查看:94
本文介绍了关于在asp.net配置文件和会话的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么是会话和配置文件之间的基本区别。无论我们存储在会话数据可以从任何页面访问asp.net中和,无论我们在配置文件存储数据,也可以从任何页面访问在asp.net的配置文件。我经常存储在会话用户特定的数据。所以我只是想在什么样的情况,我们的数据存储在配置文件而不是会就知道了。另一件事我想知道他的表现还是不错的会话或配置文件。欢迎洽谈。谢谢

what is the basic difference between session and profile. whatever we store in session that data can be access from any page in asp.net and whatever we store in profile that data also can be access from any page in asp.net from profile. i often store user specific data in session. so i just want to know in what kind of situation we store data in profile instead of session. another things i want to know whose performance is good session or profile. please discuss. thanks

推荐答案

个人资料

1 Profile对象范围限定于特定的用户:
    Web应用程序的每个用户都自动拥有了自己的个人资料。

1- Profile object is scoped to a particular user: Each user of a web application automatically has his own profile.

2 - 档案目标是持续性:
    当您修改统计操作系统配置文件对象,修改的内容保存到网站访问的。

2- Profile object is persistant: When you modify the stat os the profile object, the modifications are saved between visits to the website

3简介对象使用提供程序模型来存储信息:
    默认情况下,用户配置文件的内容会自动保存到Microsoft SQL Server的防爆preSS数据库
    位于App_Data文件Web应用程序的。

3- Profile object uses the provider model to store information: By default, the contents of a user profile are automatically saved to a Microsoft SQL Server Express database located in App_Data of your web application.

4- Profile对象是强类型:
    使用强类型属性有几个优点。例如,你得到完整的Microsoft智能感知时,
    使用Profile对象在VS.NET 2005或Visual Web Developer

4- Profile object is strongly typed: Using strongly typed properties has several advantages. For example, you get full Microsoft IntelliSense when using the Profile object in VS.NET 2005 or Visual Web Developer

会议

1 Session对象范围限定于特定的用户:
    Web应用程序的每个用户自动拥有自己的会话状态。

1- Session object is scoped to a particular user: Each user of a web application automatically has his own Session state.

2 - Session对象是非持续性:
    当您添加一个项目到Session对象,物品消失,你离开网站后。

2- Session object is non-persistant: When you add an item to the Session object, the items disappear after you leave the Web site.

3 Session对象用来存储三种不同的方式:
    3.1:处理中 - 默认
    3.2:状态服务器(进程外)
    3.3:SQL服务器

3- Session object uses three different ways to be stored: 3.1: In Process - default 3.2: State Server (Out of Process) 3.3: SQL Server

4- Session对象不是强类型:

4- Session object is not strongly typed:

来源:档案VS对话

这篇关于关于在asp.net配置文件和会话的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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