15
I’m studying about Tecnologias Web, and during my class there was a topic about concepts involving Session
and Application
. The technology addressed during the class was C#
. I didn’t quite understand the differences between them. Searching, I found the following answer:
The main difference between these two concepts is that the state of the session stores variables and objects for a particular user and exists as long as the user session exists while the applying stores variables and objects that are shared with all application users at the same time.
Source: ASP.NET 2.0 - Introducing with the Application object
However, I could not visualize 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
?
Just to complement, in . NET environment, among these there is the Cache, which also has application scope. And it is recommended not to use more Session, see more details on this website.
– Thiago Lunardi
@Thiagolunardi Corretíssimo. Since 2010 giving problem Load Balancing.
– Leonel Sanches da Silva