Apache::ASP Powered by ModPerl & Apache Powered by Apache::ASP
Demo ASP: global_asa_demo.asp 2024-12-01

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.

45 Sessions Recorded
1 Active Sessions


0010b7... 321 seconds
$VAR1 = {};

006c51... 321 seconds
$VAR1 = {};

0088ae... 1733027674 seconds
$VAR1 = {};

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

01aeda... 1733027674 seconds
$VAR1 = {};

01bacd... 322 seconds
$VAR1 = {};

02b62d... in session
$VAR1 = {
          'Started' => '1',
          'onstart' => '1733028102',
          'Count' => '10'
        };

03d14b... 322 seconds
$VAR1 = {};

0493bf... 348 seconds
$VAR1 = {};

053c86... 306 seconds
$VAR1 = {};

056bbd... 322 seconds
$VAR1 = {};

059a48... 321 seconds
$VAR1 = {};

0662fc... in session
$VAR1 = {
          'onstart' => '1733027756',
          'Count' => '10'
        };

067b38... 1733027674 seconds
$VAR1 = {};

0758c5... 321 seconds
$VAR1 = {};

07760e... 80 seconds
$VAR1 = {};

07cae5... 1733027701 seconds
$VAR1 = {};

07e968... 80 seconds
$VAR1 = {};

08108b... 80 seconds
$VAR1 = {};

08109d... in session
$VAR1 = {
          'Started' => '1',
          'Ended' => '1',
          'onstart' => '1733027727',
          'Count' => '10'
        };

08a1f0... in session
$VAR1 = {
          'Started' => '1',
          'Ended' => '1',
          'onstart' => '1733027655',
          'Count' => '10'
        };

08ec10... 1733027701 seconds
$VAR1 = {};

08ef74... 312 seconds
$VAR1 = {};

094b7b... 321 seconds
$VAR1 = {};

095071... 80 seconds
$VAR1 = {};

095308... 1733027674 seconds
$VAR1 = {};

09b0b7... 80 seconds
$VAR1 = {};

09f417... in session
$VAR1 = {
          'Started' => '1',
          'Ended' => '1',
          'onstart' => '1733027600',
          'Count' => '10'
        };

0a56a0... 134 seconds
$VAR1 = {};

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

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

0c6d80... 1733027674 seconds
$VAR1 = {};

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

0ce7d9... 320 seconds
$VAR1 = {};

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

0d9140... 327 seconds
$VAR1 = {};

0de6c6... 81 seconds
$VAR1 = {};

0e26df... 1733027701 seconds
$VAR1 = {};

0eb042... 1733027701 seconds
$VAR1 = {};

0ee639... 313 seconds
$VAR1 = {};

0ee76b... 1733027701 seconds
$VAR1 = {};

0f07a7... 310 seconds
$VAR1 = {};

0f4b60... 322 seconds
$VAR1 = {};

0f5cef... 375 seconds
$VAR1 = {};

0fca17... 108 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