Cache Session and ViewState

D

Dragon

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

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

Hans Kesting

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
 
D

Dragon

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
 
D

Dragon

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
 

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

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,021
Latest member
AkilahJaim

Latest Threads

Top