Print Page | Close Window

Application Variables vs. Database

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=8649
Printed Date: 01 April 2026 at 1:12am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Application Variables vs. Database
Posted By: Mikael
Subject: Application Variables vs. Database
Date Posted: 07 January 2004 at 1:16pm

What is the main advantage to use Application Variables in a ASP-project? You can use database connections and session variables instead... I heard that application variables will run faster than the database...

Doesn't Application Variables needs a global.asa to work?




Replies:
Posted By: WebWiz-Bruce
Date Posted: 07 January 2004 at 1:33pm
Application variables don't need a global.asa but you do need your own sites server resources (which free hosts don't give you).

Application variables are only faster in some circumstances. If you have data that doesn't require updating often and is the same for all users of your site then application variables can be better as you don't need to do the expensive round trip to get the data from your database each time and page is loaded.

Session variables are better if you require to store different data for each user, but they do require that the user has cookies enabled on their browser.


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net