Regarding profile and session in asp.net

What is the main difference between a session and a profile. no matter what we store in a session, that data can be accessed from any page in asp.net and no matter what we store in a profile, data can also be accessed from any page in asp.net from a profile. I often store user data in a session. so I just want to know in what situation we save data in a profile instead of a session. other things I want to know whose performance is a good session or profile. please discuss. thank

+3
source share
3 answers

Profile

1- The profile object is tied to a specific user: Each user of a web application automatically has its own profile.

2- :    stat os , -

3 :    Microsoft SQL Server Express    App_Data -.

4 :    . , Microsoft IntelliSense,    Profile VS.NET 2005 Visual Web Developer

Session

1- :    - .

2- :    Session, -.

3 Session :   3.1: -   3.2: ( )   3.3: SQL Server

4- :

: VS

+7

. asp.net, .

+1

Aside from answering Hawxby and Davide Piras questions that are technically correct, I also feel that there is a conceptual difference between the profile and the session. I believe that profile properties are session user attributes, where, since the session must include session properties. For example, in my application, I use the Profile properties because I often call Session.Clear () for security and efficiency, without fear of losing user attributes.

0
source

Source: https://habr.com/ru/post/1794075/


All Articles