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 ldap and active directory?
How many types cache in asp net?
What is the difference between adding reference in solution explorer and adding references by using ?
What are triggers of an updatepanel?
Why does my asp.net file have multiple tag with runat=server?
Explain asp.net mvc request life cycle? : asp.net mvc
I’m having some trouble with cas. How can I diagnose my problem?
What is custom attribute? How to create?
How to create events for a control?
Which type if caching will be used if we want to cache the portion of a page instead of whole page?
What is the use of web.config and machine.config files?
How response object is related to asp's response object?
Is web config mandatory?
Describe the difference between inline and code behind - which is best in?
What are the types of authentication in asp.net?