M
Matt
When we declare static variable in a standalone application,
the lifetime of a static variable begins from the execution of the program
untill the termination of the program.
When we declare static variable in a web application,
the lifetime of a static variable begins from the the start of the web application
in web server, untill the web application is stopped in web server.
At first, I thought the lifetime of a static variable in a web application is
from opening the web browser until the web browser closes, that is session
lifetime, and now I realize it is wrong.
Please confirm the concept. Thanks
the lifetime of a static variable begins from the execution of the program
untill the termination of the program.
When we declare static variable in a web application,
the lifetime of a static variable begins from the the start of the web application
in web server, untill the web application is stopped in web server.
At first, I thought the lifetime of a static variable in a web application is
from opening the web browser until the web browser closes, that is session
lifetime, and now I realize it is wrong.
Please confirm the concept. Thanks