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 usie of activex control in .net?
Are there resources online with tips on asp to asp.net conversions?
What kind of programming language is ASP.NET?
How do you sign out from forms authentication?
What is the syntax for datagrid and specifying columns?
What are the event handlers that we can have in global.asax file?
while developing webservices if i want some users to use my webservice only how can i give security to my webservice?
What is data grid view in asp.net?
What are the different types of validation controls provided in ASP.NET?
What is difference between abstract class and an interface?
What are the disadvantages of using session?
Do session use cookies in asp net?
where can i gather the materials for MCP certification
What is cas?
What is the difference between typeof() vs gettype()?