What is the difference between session, cache and profile in asp.net

we often use session, cache and profile in asp.net web form project. we often store data in a session, cache and profile in an asp.net webform project, but I like to know when we should store data in a session or when we need to store in cache and profile. what is the size of the cache or profile. these two also depend on the lifetime or the particular application.

Suppose that if I store data in a cache or profile from session 1, then I can access this data from session 2 or not. just tell me a script and an example when we need to store data in a session, cache and profile. thank

+5
source share
1 answer

cache, : , , ..

Scenario 1: , , , , . (, ebay amazon). , .

Solution 1: cache . cache . cache , . , , .

ASP.NET: MSDN.


profile , , .

Scenario 2: , Scenario 1, ( ).

Solution 2: profile. , , , .


Session , - .

Scenario 3: , , , , , , , , . .

Solution 3: Session, , URL- , .

, MSDN ASP.NET.


, , asp.net.


, .

+14

All Articles