Hi,
What is the difference between below three objects.Anybody can explain with examples.
1.Application object
2.Cache Object
3.Session Object.
Application,Cache,Session
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.


Zoran HorvatRank #792 · 2.9K reputationPosted Jul 26, 2011, 1:06 AM EDT
Cache object allows you to keep objects in memory (on the server) so that you don't have to go to database every time some page requires them. This saves a lot of time when executing ASP pages.
Session object allows you to store variables that only one user can see (e.g. username, password, state of payment, etc.). Session has limited lifetime. If user does not refresh the page or access some other page within the application, session will expire and all values stored in it (in memory) will disappear. Other users cannot see variable values for any other user.
Zoran