[thelist] Application Vars in ASP

Martyn Haigh martyn.haigh at virgincosmetics.com
Thu Feb 13 10:51:01 CST 2003


> >> Each time a user connects to the site an Application instance
> >> object is created and populated with everything added in the
> >
> >I was under the impression that this was what occurred with a member of
> >the Session object's Items collection. The Application object AFAIK can
> >be used to store values that need to be constant across all users of the
> >application thus being a much more efficient means of handling values
> >with application scope due to low memory usage.

So it's better to define loads of app vars with values that are to be global
instead of having a var page which is included on every page?

<snip> A major problem with includes (with VBScript anyway) is namespace
collisions</snip>

I know all about this - luckily its not as bad to deal with as permission
problems!!!

<snip>This is one of the reasons that I attempt to take a much more OO
approach to ASP programming. Using classes allows a lot more flexibility
with naming, and allows me to create a much more structured
application.</snip>

I would love to do this - but can never see the need for it in my programs.
Have you got any reference points on pseudo-OOP in VBScript?

What was the last verdict - functions in the global.asa are alright (as long
as you wtch out for namespace collisions)?

Cheers

M


DISCLAIMER: The information in this email is confidential and may be legally
privileged. It is intended solely for the addressee. Access to this email by
anyone else is unauthorised. If you are not the intended recipient, any
disclosure, copying, distribution or any action taken or omitted to be taken
in reliance on it, is prohibited and may be unlawful.





More information about the thelist mailing list