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
Explain swagger components.
Where is cookie used in asp.net?
What are custom user controls in asp.net?
What is the use of view state?
What are the versions of garbage collection?
Why do we need a web application session?
How does a web application session work?
Define caching.
What events will occur when a page is loaded?
What are the session variables?
What are sessions used for?
What is the postback property in asp.net?
What is enableviewstate in asp net?
Explain how do you validate the controls in an asp .net page?
What is the difference between a default skin and a named skin?