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

Why select Web API?

766


Why does my asp.net file have multiple tag with runat=server?

789


How you can stop the validation of ASP.NET controls from client side?

797


How is my content secured from unauthorized access?

736


What is xaml? Are xaml file compiled or built on runtime?

752


What is a user session?

719


How you can add an event handler?

758


What is authentication in asp.net?

816


What are the session variables?

739


What is the difference between custom controls and user controls?

717


Explain why datareader is useful?

774


What’s the use of “GLOBAL.ASAX” file?

864


What is query string in asp.net?

807


What are the events in a page life cycle?

742


How ASP.NET page works?

882