Session State and Cache data?????

T

Teemu Keiski

Session state is user (session) specific while cache is global (same to all
sessions/users). Session also has different modes which impact on where
session state is persisted. (in memory i.e in-process, separate process,
database) This is to control the durability of sessions and so on for
example in case when application restarts when in-memory session state would
be lost. Cache data is also stored in-memory and it would be lost in case of
restart.

From programming perspective, their usage is similar. They are key/value
dictionaries/collections where you store/retrieve objects with a given key.
 
B

Ben Strackany

If you have ASP experience, it's a little like the Session object vs the
Application object.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,042
Latest member
icassiem

Latest Threads

Top