Apache::ASP Powered by ModPerl & Apache Powered by Apache::ASP
Demo ASP: global_asa_demo.asp 2021-02-26

This example serves as how one may use the global.asa file event handlers. Please see the global.asa file for the code relevant to this example.

The following table lists the sessions that have been recorded in the global.asa file into $Application. When a session ends, its time lived is recorded and displayed below. Active sessions are also listed.

44 Sessions Recorded
4 Active Sessions


0027bb... 416 seconds
$VAR1 = {};

00c55e... in session
$VAR1 = {
          'Started' => '1',
          'Ended' => '1',
          'onstart' => '1614363090',
          'Count' => '10'
        };

00e1fc... 62 seconds
$VAR1 = {};

01121e... 413 seconds
$VAR1 = {};

013833... 425 seconds
$VAR1 = {};

01e5ca... 366 seconds
$VAR1 = {};

02632b... 431 seconds
$VAR1 = {};

03a4d1... 369 seconds
$VAR1 = {};

03b2d6... 436 seconds
$VAR1 = {};

05b029... 435 seconds
$VAR1 = {};

05e037... 436 seconds
$VAR1 = {};

05e18e... 1614362946 seconds
$VAR1 = {};

05e1c1... 356 seconds
$VAR1 = {};

05e6fe... 106 seconds
$VAR1 = {};

061558... 438 seconds
$VAR1 = {};

065b0d... 362 seconds
$VAR1 = {};

069de4... 354 seconds
$VAR1 = {};

070986... 148 seconds
$VAR1 = {};

0733dc... 69 seconds
$VAR1 = {};

075268... 339 seconds
$VAR1 = {};

0765b0... 376 seconds
$VAR1 = {};

08658d... 337 seconds
$VAR1 = {};

08dcce... 435 seconds
$VAR1 = {};

08f0bb... 396 seconds
$VAR1 = {};

093480... 444 seconds
$VAR1 = {};

0a7253... in session
$VAR1 = {
          'Started' => '1',
          'Ended' => '1',
          'Count' => '11',
          'onstart' => '1614363246'
        };

0ae8d5... in session
$VAR1 = {
          'Started' => '1',
          'Ended' => '1',
          'onstart' => '1614362947',
          'Count' => '10'
        };

0bc342... 144 seconds
$VAR1 = {};

0c2083... 383 seconds
$VAR1 = {};

0c9d5d... in session
$VAR1 = {
          'Started' => '1',
          'Ended' => '1',
          'onstart' => '1614363114',
          'Count' => '10'
        };

0cc93e... 435 seconds
$VAR1 = {};

0d3e55... 145 seconds
$VAR1 = {};

0d4beb... 175 seconds
$VAR1 = {};

0d5e55... 419 seconds
$VAR1 = {};

0d8154... 184 seconds
$VAR1 = {};

0d9b08... 343 seconds
$VAR1 = {};

0decbd... 435 seconds
$VAR1 = {};

0df1d8... in session
$VAR1 = {
          'Started' => '1',
          'onstart' => '1614363326',
          'Count' => '10'
        };

0e4246... 435 seconds
$VAR1 = {};

0e77b4... in session
$VAR1 = {
          'Started' => '1',
          'Ended' => '1',
          'onstart' => '1614363235',
          'Count' => '10'
        };

0e99c5... 1614362946 seconds
$VAR1 = {};

0ea940... 382 seconds
$VAR1 = {};

0f2d43... 204 seconds
$VAR1 = {};

0f4c1f... 65 seconds
$VAR1 = {};

To see multiple sessions listed you may create a 2nd session by closing and then reopening the browser you are using to view this file, or you may also open a 2nd kind of browser to create this 2nd session. There is only one session-id generated per browser session for an asp application.


Here is a simple use of the Script_OnStart & Script_OnEnd event handlers, keeping track of the number of scripts executed this session:
Scripts Started This Session: 1
Scripts Ended This Session: 0

view this file's source