Senator Guerra Souty original series calendar,replica hublot blue steel peach pointer collocation of rolex replica Rome digital scale, track type minute replica watches scale shows that the classical model is swiss replica watches incomparable, wearing elegant dress highlights.
mr-ponna.com

 

YOU ARE HERE: HOME Questions Difference between Session and Cache



Session vs Cache

View(s): 28099

Difference between Session and Cache?

Answer 1)
The key difference is session is per user, while cache will be for application scoped items.

Another difference is:
  • Items put into a session will stay there, until the session ends.
  • Items in the cache can expire (will be removed from cache) after a specified amount of time. And also there is no guaranty that objects will not be removed before their expiration times as ASP.NET remove items from cache when the amount of available memory gets small. This process is called as Scavenging.
Another difference is:
  • The session state can be kept external (state server, SQL server) and shared between several instances of your web app (for load balancing).
  • This is not the case with the cache.

  Asked in:  Wipro   Expertise Level:  Experienced
  Last updated on Wednesday, 12 October 2011
4/5 stars (26 vote(s))

Register Login Ask Us Write to Us Help