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
How can we use Web API with ASP.NET Web Form?
Define transparent caching with aop?
Name the method that needs to be invoked on the dataadapter control to fill the generated dataset with data?
What tags do you need to add within the asp:datagrid tags to bind columns manually? How?
Define reflection in .net?
What are the parts of an http response?
What is use of Master Page in ASP.NET web pages?
What does the hotspot class in .net do?
Explain the various authentication mechanisms in asp.net.
Where you store Connection string in "Web.Config" file in ASP.NET?
Explain about asp.net 2.0 themes?
What is a nested masterpage in asp.net 2.0? Can there be a master page inside a masterpage?
What is a server farm in iis?
How can we add an event handler for a ASP.NET function executed on MouseOver for a certain button.
Which is an advantage of application service providers?