locked
How different is session from cache? RRS feed

  • Question

  • User-1329334484 posted

    How different will it work if I change:

    Session["m_dvInv"] = m_dvInv;

    to

    Cache["m_dvInv"] = m_dvInv;

    m_dvIn is loaded only once when user visit the site... 

    Is Cache values per user session too? 

    Saturday, October 7, 2006 5:38 PM

Answers

  • User-1329334484 posted
    Thank you very much! I will watch some webcast about cache, long overdue... :)
    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Sunday, October 8, 2006 8:42 PM

All replies

  • User43093768 posted

    Session is user based and Cache is application based.

    This means that if you put any thing in the Session object it will be available for that user's session.

    Cache on the hand is global. If you put anything in the Cache it will be available for the entire application.

     

    Saturday, October 7, 2006 6:00 PM
  • User-1329334484 posted
    Thank you very much! I will watch some webcast about cache, long overdue... :)
    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Sunday, October 8, 2006 8:42 PM