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.
 

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

Back
Top