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 / praveen singh

1.
A. Sessions may not improve performance whereas Cache will
improve site performance.

B. Sessions may change from user to user whereas a single
Cache will be maintained for the entire application.

C. Cache wont maintain any state, whereas Sessions will
maintain separate state for every user.

2.
Yes Cache is accessible through out entire application
3.
Application beacuse application object is share by entire
application.

Is This Answer Correct ?    17 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can we use Web API with ASP.NET Web Form?

646


Define transparent caching with aop?

530


Name the method that needs to be invoked on the dataadapter control to fill the generated dataset with data?

535


What tags do you need to add within the asp:datagrid tags to bind columns manually? How?

510


Define reflection in .net?

558






What are the parts of an http response?

494


What is use of Master Page in ASP.NET web pages?

621


What does the hotspot class in .net do?

567


Explain the various authentication mechanisms in asp.net.

486


Where you store Connection string in "Web.Config" file in ASP.NET?

580


Explain about asp.net 2.0 themes?

555


What is a nested masterpage in asp.net 2.0? Can there be a master page inside a masterpage?

506


What is a server farm in iis?

535


How can we add an event handler for a ASP.NET function executed on MouseOver for a certain button.

616


Which is an advantage of application service providers?

489