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 are the disadvantages of view state / what are the benefits?

2 Answers   Siebel Systems,


How can you implement the postback property of an asp.net control?

0 Answers  


can we remote debug applications with the remote debugger installed with vs.net 2002, with vs.net 2003?

0 Answers  


which event in global.asx that fires for every request of same user?

4 Answers   FactorH,


What is a session in programming?

0 Answers  


How information about the user's locale can be accessed?

0 Answers   MindCracker,


what is difference between User Control,Custom Contro1,Web server control and template controls

1 Answers  


What is http response header?

0 Answers  


What is asp.net web application?

0 Answers  


Difference between using directive vs using statement?

0 Answers  


Where the viewstate is stored after the page postback?

0 Answers  


What is application and session in asp.net?

0 Answers  


Categories