I'm studying about Web Technologies , and during my class a topic about concepts involving Session
and Application
came up. The technology covered during class was C#
. I did not quite understand the differences between them. Searching, I found the following answer:
The main difference between these two concepts is that the state of session stores variables and objects for a particular user, and exists while the user session exists while the status of the application stores variables and objects that are shared with all users of the application at the same time.
Source: ASP.NET 2.0 - Presenting with the Application object
However, I did not see the applicability of these concepts in practice. Could anyone elucidate situations where I can apply each of them? These concepts apply to other types of technology, such as Java
, PHP
, Javascript
?