Menu ▼



Posted By :
avatarmrkraju
Total Views : 553

Difference between session and application

Session state and application variable are part of Asp.net server side state management concepts. If you want to save the user specific data use session state. If you want to save the application level data then use application variable.


Session

  • Sesions are is used to save the user specific data like UserID, User Role, etc. And can be accessible only by that user.
  • Data stored in the SesionState will be cleared when the session expired(usually after 20min of inactivity when using session inproc).


Application variable

  • Application variable are used to save the application level data. And can be accessible by all the users.
  • Data stored in the Application variable will be cleared when the application restart.






comments powered by Disqus


Search dotnetlearners.com