Sunday, August 21, 2016

Application State

Application State is stored in the memory of the the server and is faster than storing and retrieving information in a database.
  • Use for Global Access and need for entire time. E.g. Track user online
  • are multi-user global data. (Session is Single-user global data)
  • Available across all pages and across all sessions. (Session is for specific session)
  • Stored on the web server. Not shared across a Web Farm. 
  • No Expired period. application object end when the worker process restart. 
  • Not thread safe (Lock), got Application.Lock()
  • Not For send data from 1 web form to another, because will stay in memory long time and other user can change it.

No comments:

Post a Comment