Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

1. What is the difference between Cache and Session?
2. I cache limited to page like viewstate or it's accessible
through out the application like session?
3. Which one is better when I've some data that is to be
used across the application? Why is to better than the other?

Answer Posted / vasanth

Caching is storing data in memory for quick access. Typically information that is costly to obtain (in terms of performance) is stored in the cache. One of the more common items stored in a cache in a Web application environment is commonly displayed database values; by caching such information, rather than relying on repeated database calls, the demand on the Web server and database server's system resources are decreased and the Web application's scalability increased.

Session variables can also be used to cache information in classic ASP, although, as with the cookie approach each session variable is specific to a particular user, and to tie a session variable to a particular user the user's browser must accept cookies. The advantages of using session variable's over cookies is that you can store objects, such as an array, or Dictionary object. Since session variables are stored on the Web server's memory, storing large objects in a user's session on a site with many simultaneous users can lead to reduced memory on the Web server.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain difference between dataset and datareader?

978


What is difference cookie and session?

926


What is session object? Describe in detail.

966


How to implement globalization and localization in the use interface in .net.

938


How do I open an ashx file?

1001


Explain the main function of razor in asp.net? : asp.net mvc

1034


Whats the difference between abstract factory pattern and factory pattern?

972


How to rename a table using sql queries?

1022


What are the advantages of asp.net?

933


Give 2 examples for scenarios when routing is not applied?

993


What is Difference between Production Serves and Development Servers? And Suppose, m adding/deleting C# file in a project based on the Specific Requirement. These Files are Automatically updated in Production Servers? So Which tool is needed to do This One?

1966


What is the procedure to handle the process request using mhpm events fired? : asp.net mvc

998


Just by seeing the signature of the bean how can you specify whether it is a stateful or stateless session bean?

937


Is viewstate enabled by default?

911


What is the difference between a multi-layer and multi-tier applications?

951