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
Can we make activex dll also ti execute in some process as that of client ? How can we do?
What is mvc in angular?
What is the mvc model?
In which event are the controls fully loaded?
What is difference between session and application in asp net?
What are sessions used for?
Can you clarified A Web service can only be written in .NET or not?
What is a web pool?
What is the difference between debug and release?
Which method do you use to enforce garbage collection in .net?
When you are running a component within ASP.NET, what process is it running within on Windows XP? Windows 2000? Windows 2003?
What is the difference between session and viewstate?
What are session objects?
What is the difference between a cookie and a pixel?
How ASP and ASP.NET page works? Explain about asp.net page life cycle?