0

With respect to classic ASP, are variables defined within individual code files, such as Const var1 = "foo", and so on, maintained per-user or per-server/web-site? In other words, is it more efficient to define global or public variables (for use by all site users) as Application variables, or does it matter as far as performance and speed are concerned?

1 Answer 1

2

The variables are per-request.

Session variables are per-user in a website.

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

Note that on a busy site, overuse of session variables leads to memory pressure (it isn't very efficient), so usage should be kept to a minimum.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.