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 loop in asp.net?

0 Answers  


33) You create English, French, and German versions of your ASP.NET application. You have separate resource files for each language version. You need to deploy the appropriate resource file based on the language settings of the server. What should you do? A . Create an installer and set the Installer.Context property for each version of your application. B . Create an installer that has a launch condition to verify the locale settings. C . Create an installer that has a custom action to install only location-specific files. D . Create an installer that has an MsiConfigureProduct function to install the appropriate version.

2 Answers   Friedkin, ISH, Syntax, Syntax Softtech,


Define xmlvalidatingreader class.

0 Answers  


different architectures of asp.net?

1 Answers  


what is asp.net

12 Answers   Dynacs,






What is the difference between control and component?

4 Answers  


What is runtime host ?

3 Answers   Digital GlobalSoft,


what is impersonation in ASP.NET?

7 Answers   Accenture, Merrill Lynch, Wipro,


Where is ViewState information stored?

18 Answers   DSRC, HCL,


What happens if an ASP.NET server control with event-handling routines is missing from its definition?

0 Answers   MindCracker,


What is difference in .net 1.1 and .net 2.0?

0 Answers  


when using personlization, how do you access over setting at runtime?

1 Answers  


Categories