Sunday 15 April 2012

asp classic - Code Variables vs. Application and Session Variables -


Regarding the classic ASP, the individual code files are defined variables, such as const var1 = "foo"

, and so on Per-user or per-server / web-site is maintained? In other words, is it more efficient to define global or public variables (for use by all site users) as the application variable, or does it matter whether performance and speed are related?

Variables are per-requests.

Session variables are per user in a website.

Application variables are for the entire application (i.e. website).

Note that on a busy site, excessive use of session variables leads to memory pressure (it is not very efficient), so the usage should be kept to a minimum.

No comments:

Post a Comment