Cache vs Session

  • Thread starter Thread starter Jawahar Rajan
  • Start date Start date
J

Jawahar Rajan

All,
I am working on a web Application where some information needs to be
persisted across some web pages.

For example I need to keep track of CustomerID
Would it be better to Cache this CustomerID using the System.web.Caching
classes or is it better to use the ASP session.
I have not been a huge fan of the Session Objects so tend to Cache.
But setting the session level variable is vary simple

All suggestions and ideas are apporeciated

Thanks
Jawahar
 
I would only use caching for data the persists across users, not for user
specific data.

Sessions are handled much more robustly in .NET than in classic ASP and you
can use a state server or cookieless sessions as well.
 
Back
Top