Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 16th, 2006, 12:46 AM
Registered User
 
Join Date: Nov 2006
Location: , , .
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default About Global.asa

I am a ASP newbie i've read several articles about the functionality of global.asa file. But still little blurred on my side. just wanna ask master's out there to pls. give a good insight on this mysterios file. when to use? (industry standard). thanks hope somebody replies.

 
Old November 20th, 2006, 12:03 PM
Friend of Wrox
 
Join Date: May 2006
Location: San Diego, CA, USA.
Posts: 643
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Global.asa has several purposes, but its essential use is to provide a place where you can handle events that are global in nature. These events are the Application and Session on start and on end events, and give you a place to run code that can initialize and clean up variables and objects that are used by the rest of your asp pages. In other words, Global.asa is for things that are NOT at the Request level of your application. Your typical ASP pages deal with the request and response objects, and the Global.asa does not.

A typical example is to use Global.asa to keep track of the number of users on line by setting up a counter application variable in the Application_OnStart method, incrementing it on each Session_OnStart method, and decrementing it on each Session_OnEnd.

Woody Z http://www.learntoprogramnow.com
 
Old December 4th, 2006, 12:40 AM
Registered User
 
Join Date: Nov 2006
Location: , , .
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

thanks woody





Similar Threads
Thread Thread Starter Forum Replies Last Post
Global.asa pushpa Classic ASP Basics 19 March 9th, 2007 08:30 AM
global.asa vin_0x1 Classic ASP Components 2 July 24th, 2006 01:13 AM
GLOBAL.ASA zaeem Classic ASP Databases 3 November 4th, 2003 09:13 AM
Global.asa madsmad ASP.NET 1.0 and 1.1 Basics 1 August 17th, 2003 07:05 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.