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

Is asp.net 64-bit enabled? How?

824


Which .NET framework supports Web API?

799


List all templates of the repeater control.

763


What is dynamic web page with example?

729


How many types of state management are there in asp net?

735


What’s the difference between response .redirect and server.transfer?

733


Should I delete cookies?

731


Are there resources online with tips on asp to asp.net conversions?

766


Why is this service branded with windows livetm?

787


Do I need to have the latest version of windows media player installed?

719


What’s the catch?

865


What is the concept of view state in asp.net?

779


In asp.net, how can you validate drop down box?

825


Which protocol is used to call a web service?

783


What is the usage of DelegatingHandler?

793