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


Please Help Members By Posting Answers For Below Questions

Can we make activex dll also ti execute in some process as that of client ? How can we do?

4345


What is mvc in angular?

646


What is the mvc model?

660


In which event are the controls fully loaded?

658


What is difference between session and application in asp net?

585






What are sessions used for?

646


Can you clarified A Web service can only be written in .NET or not?

633


What is a web pool?

684


What is the difference between debug and release?

610


Which method do you use to enforce garbage collection in .net?

599


When you are running a component within ASP.NET, what process is it running within on Windows XP? Windows 2000? Windows 2003?

678


What is the difference between session and viewstate?

590


What are session objects?

614


What is the difference between a cookie and a pixel?

563


How ASP and ASP.NET page works? Explain about asp.net page life cycle?

680