Apache::ASP Powered by ModPerl & Apache Powered by Apache::ASP
Demo ASP: global_asa_demo.asp 2021-05-18

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.

46 Sessions Recorded
2 Active Sessions


005175... in session
$VAR1 = {
          'Started' => '1',
          'Ended' => '1',
          'onstart' => '1621333305',
          'Count' => '10'
        };

0060f7... 306 seconds
$VAR1 = {};

00a3c9... 332 seconds
$VAR1 = {};

00e1e1... 149 seconds
$VAR1 = {};

01097d... 350 seconds
$VAR1 = {};

012b20... 169 seconds
$VAR1 = {};

014ab0... 161 seconds
$VAR1 = {};

0193a3... 383 seconds
$VAR1 = {};

020442... 324 seconds
$VAR1 = {};

0299f8... 70 seconds
$VAR1 = {};

038339... 364 seconds
$VAR1 = {};

03b88e... 336 seconds
$VAR1 = {};

03cbb5... 355 seconds
$VAR1 = {};

03db1c... 83 seconds
$VAR1 = {};

03eb2e... 405 seconds
$VAR1 = {};

03fdea... in session
$VAR1 = {
          'Started' => '1',
          'onstart' => '1621333637',
          'Count' => '10'
        };

04c9b6... 327 seconds
$VAR1 = {};

04da85... 309 seconds
$VAR1 = {};

05b703... 238 seconds
$VAR1 = {};

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

062249... 317 seconds
$VAR1 = {};

063ff2... 431 seconds
$VAR1 = {};

069a79... 339 seconds
$VAR1 = {};

06bb5e... 155 seconds
$VAR1 = {};

06c0a0... 316 seconds
$VAR1 = {};

06d0a5... 130 seconds
$VAR1 = {};

07205c... 85 seconds
$VAR1 = {};

08edb0... 75 seconds
$VAR1 = {};

092441... 81 seconds
$VAR1 = {};

09646d... 94 seconds
$VAR1 = {};

0ad42f... 465 seconds
$VAR1 = {};

0b1c37... 319 seconds
$VAR1 = {};

0b2221... 1621333416 seconds
$VAR1 = {};

0b782e... in session
$VAR1 = {
          'Started' => '2',
          'Ended' => '2',
          'onstart' => '1621333330',
          'Count' => '10'
        };

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

0bee6d... 346 seconds
$VAR1 = {};

0bf4ac... 102 seconds
$VAR1 = {};

0cc853... 100 seconds
$VAR1 = {};

0d316a... 79 seconds
$VAR1 = {};

0e4a92... 354 seconds
$VAR1 = {};

0e9115... 69 seconds
$VAR1 = {};

0eb11c... 127 seconds
$VAR1 = {};

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

0efa4b... 332 seconds
$VAR1 = {};

0f0c00... 154 seconds
$VAR1 = {};

0f3656... 393 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