What is the difference between a session object and cache object

Answers were Sorted based on User's Feedback



What is the difference between a session object and cache object..

Answer / asif ismail kunnibhavi

Caching :- used to minimize the DB/Server hit and improves
Performance.data is available to all users.Can expire
automatically once duration is specified and untill memory
is available or expires as application restarts.

Session :- used to store data specific to user and remains
untill user loggs off or session expires. usually session
lasts for 20 minutes(configurable)

Is This Answer Correct ?    24 Yes 3 No

What is the difference between a session object and cache object..

Answer / nitin

Session is Global Storage Mechanism accessible from all
pages in the Web Application.

Cache object allow to place items in server memory so that
they can be quickly retrieved after the First Requist.

Is This Answer Correct ?    3 Yes 9 No

Post New Answer

More ASP.NET Interview Questions

What is Fragment Caching in ASP.NET?

2 Answers   MCN Solutions, pspl, Wipro,


What are the ways to show data grid inside a data grid for a master details type of tables? If we write any code for DataGrid methods, what is the access specifier used for that methods in the code behind file and why?

0 Answers  


i want to develope a page for online test using asp.net with c#.net. so, how to insert the questions in the database sqlserver2000 and how to pick the questions randomly when user login for test. plz send the code for this....

3 Answers   Chaitanya, Crysalis, CTS, HCL, Sein Infotech, TCS,


Why session management is required?

0 Answers  


define silverlight and advantages ?

3 Answers   QA,






what is loosely coupled solution? How it can be used?

0 Answers   Siebel,


How could you modify xaml content from javascript?

0 Answers  


What is the maximum number of classes that can be contained in one dll file?

0 Answers  


Code for scolling in gridview

1 Answers   TCS,


What does the "EnableViewState" property do? Why would I want it on or off?

3 Answers  


Any disadvantages in Dataset and in reflection ?

1 Answers   DELL,


What is a session http?

0 Answers  


Categories