Cache Session and ViewState

  • Thread starter Thread starter Dragon
  • Start date Start date
D

Dragon

Session["A"]
ViewState["A"]
Cache["A"]

Already There are
Session and ViewState
What is the use of Cache ?
 
Session["A"]
ViewState["A"]
Cache["A"]

Already There are
Session and ViewState
What is the use of Cache ?

Session stores things for the specific user,
ViewState for a specific page, as long as you remain in a "postback"
situation (after a redirect, it's gone)
Cache stores things at an application level (*not* user specific). It
can also handle several expiry mechanisms.

There is also Application["A"], also "application" level (as the name
suggests), but without the expiry features of Cache.

Hans Kesting
 
Then, What is the difference of Cache and Application ?
Cache["A"]
Application["A"]

Hans Kesting said:
Session["A"]
ViewState["A"]
Cache["A"]

Already There are
Session and ViewState
What is the use of Cache ?

Session stores things for the specific user,
ViewState for a specific page, as long as you remain in a "postback"
situation (after a redirect, it's gone)
Cache stores things at an application level (*not* user specific). It can
also handle several expiry mechanisms.

There is also Application["A"], also "application" level (as the name
suggests), but without the expiry features of Cache.

Hans Kesting
 
Oh, Got it, Thx.

Hans Kesting said:
Session["A"]
ViewState["A"]
Cache["A"]

Already There are
Session and ViewState
What is the use of Cache ?

Session stores things for the specific user,
ViewState for a specific page, as long as you remain in a "postback"
situation (after a redirect, it's gone)
Cache stores things at an application level (*not* user specific). It can
also handle several expiry mechanisms.

There is also Application["A"], also "application" level (as the name
suggests), but without the expiry features of Cache.

Hans Kesting
 
Back
Top