473,385 Members | 1,357 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Cache Session and ViewState

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

Already There are
Session and ViewState
What is the use of Cache ?
Mar 1 '06 #1
3 1185
> 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
Mar 1 '06 #2
Then, What is the difference of Cache and Application ?
Cache["A"]
Application["A"]

"Hans Kesting" <ne***********@spamgourmet.com> wrote in message
news:mn***********************@spamgourmet.com...
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

Mar 1 '06 #3
Oh, Got it, Thx.

"Hans Kesting" <ne***********@spamgourmet.com> wrote in message
news:mn***********************@spamgourmet.com...
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

Mar 1 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Arthur Dzhelali | last post by:
Is there any way to cache dataset on one page and it will be accessible for one user? if you declare dataset shared it will stay on the server and page will be able reference to it on reload,...
3
by: Alex Nitulescu | last post by:
Sorry, I'm really confused - I'm only at the middle of my book and already I can count 4 methods to store values. Yes, I know that cookies can not store much, but what is the difference between...
3
by: MattC | last post by:
Hi, I am persisting the viewstate for each page into the Cache object, below is shown my methods for saving and loading: I am able to save the viewstate to the cache and most times I can load...
2
by: Kikoz | last post by:
Hi all. I keep my ViewState in server's cache. Works fine except when user leaves the page opened for a long time (2 hours or so). Then if he/she tries to post it back the server throws an...
2
by: Ryan Ternier | last post by:
I'm playing around with Cache and Viewstate. I've made a small little example that reminds me of grade 12: if(!IsPostBack) { ArrayList alTest = new ArrayList(); alTest.Add("This is from...
4
by: INeedADip | last post by:
Can I put a generic List<MyObject> in cache? I read that generics can't be serialized.. Can I cache them? Can I return them from Web Services?
5
by: Prashanth | last post by:
Hi, I want to cache an object whose scope in only within the page. The cache should expire once the user leaves the page. How can I do it? Regards, Prashanth
2
by: LeAnne | last post by:
My question is to do with scalability and the location for storate of cache, session, viewstate and application data. Application - Data is stored in memory (in process) Session - Data is stored...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.