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
What is the difference between mvc and asp.net? : Asp.Net MVC
Tell me what is the request flow used for asp.net mvc framework? : asp.net mvc
How would you turn off cookies on one page of your website?
Give 2 examples for scenarios when routing is not applied?
Where is the view state data stored in asp net?
What does occur first in ASP.Net, Authentication or Authorization?
What are the differnt types of handler in ASP.NET?
What does asax stand for?
How can I configure asp.net applications that are running on a remote machine?
In the Repeater control which way you can edit?
What is the function of new view engine in asp.net? : asp.net mvc
What is viewstate? What does the "enableviewstate” property do? Whay would I want it on or off?
What is the difference between Session and response.Redirect?
What kind of data we can store in viewstate?
What is difference between view state and session state?