What is the difference between a session object and cache object

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How would you get asp.net running in apache web servers? Explain it's limitations.

531


What is asp.net master page?

557


What is Pre-Render event in ASP.NET?

592


How can you make sure that web api returns json data only?

518


In which situation can you not use a viewstate?

538






COM+ Used ________________ Isolation Level

1528


Can asp.net work on an nt server?

557


Can you explain why it is useful to use mvc instead of webforms? : asp.net mvc

543


What is datagrid asp.net?

499


Why asp.net is used?

559


What is a web server? What are the load limits in it?

590


What is advantage of asp.net?

548


What is ispostback method in asp.net?

561


How can exception be handled with out the use of try catch?

547


What is autopostback true?

611