



(1 ratings)
For example, we use the global.asa file on this website to display the number of Active Users on our site. Rather than inputting data into a database and keeping a stored record of it, our global.asa file acts as a monitor of how many users are visiting any page our website. There are no records stored in any database or text file, the information just flows in and out. Take a look at the code below we use to do this:
|
What the global.asa file does is create a session for each new user that is actively surfing any part of our website. Then, the session will time out or end either when the user leaves our website or at the default setting of 20 minutes.
There are several other things you can use the global.asa file for, but this tutorial was just intended to show you what makes this file special and to give you an idea of what it is used for.
20 Random Tutorials from the same category :
ASP Components
Iterating through Collections In ASP
The Connection Object
Displaying Server Values In ASP
NEW WAY TO HANDLE VARIABLES
Date and Time Functions In ASP
ASP.NET 2 Special Purpose Folders
Text Editors and Software to Write ASP
AIM Profile Screenname Viewer as a component of AIM Profile Designs
Counter in ASP
Recordset Access Methods
Server Variables In ASP
Reading form variables passed in the URL
Reading a Database
Counting Visitors In ASP
DISPLAY DATA FROM DATABASE
String Functions
ASP.NET Tutorial - Making image thumbnails
Server-side Scripting
SQL Access Methods In ASP














