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
Why select Web API?
Why does my asp.net file have multiple tag with runat=server?
How you can stop the validation of ASP.NET controls from client side?
How is my content secured from unauthorized access?
What is xaml? Are xaml file compiled or built on runtime?
What is a user session?
How you can add an event handler?
What is authentication in asp.net?
What are the session variables?
What is the difference between custom controls and user controls?
Explain why datareader is useful?
What’s the use of “GLOBAL.ASAX” file?
What is query string in asp.net?
What are the events in a page life cycle?
How ASP.NET page works?