Session State and Cache data?????

Discussion in 'ASP .Net' started by DaveF, Nov 24, 2004.

  1. DaveF

    DaveF Guest

    What is the difference, and are there any good articles on this?
    DaveF, Nov 24, 2004
    1. Advertisements

  2. DaveF

    Teemu Keiski Guest

    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

    From programming perspective, their usage is similar. They are key/value
    dictionaries/collections where you store/retrieve objects with a given key.
    Teemu Keiski, Nov 24, 2004
    1. Advertisements

  3. If you have ASP experience, it's a little like the Session object vs the
    Application object.
    Ben Strackany, Nov 24, 2004
    1. Advertisements

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 (here). After that, you can post your question and our members will help you out.