Cache vs Session

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jawahar Rajan

    Cache vs Session

    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.Cach ing
    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


  • Scott M.

    #2
    Re: Cache vs Session

    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.


    "Jawahar Rajan" <jrajan@nc.rr.c om> wrote in message
    news:zqSXb.9560 $eL2.1039518@tw ister.southeast .rr.com...[color=blue]
    > 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.Cach ing
    > 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
    >
    >[/color]


    Comment

    Working...