Apache::ASP Powered by ModPerl & Apache Powered by Apache::ASP
Demo ASP: global_asa_demo.asp 2021-03-07

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
5 Active Sessions


005cfb... 436 seconds
$VAR1 = {};

012765... 333 seconds
$VAR1 = {};

025bca... in session
$VAR1 = {
          'Started' => '1',
          'Ended' => '1',
          'onstart' => '1615125682',
          'Count' => '10'
        };

02f9ee... 302 seconds
$VAR1 = {};

048beb... in session
$VAR1 = {
          'Started' => '1',
          'Ended' => '1',
          'onstart' => '1615125565',
          'Count' => '10'
        };

049ff9... 370 seconds
$VAR1 = {};

04aa4f... 146 seconds
$VAR1 = {};

0515a3... 200 seconds
$VAR1 = {};

052911... 388 seconds
$VAR1 = {};

052e66... 302 seconds
$VAR1 = {};

0589e3... in session
$VAR1 = {
          'Started' => '1',
          'Ended' => '1',
          'onstart' => '1615125787',
          'Count' => '10'
        };

059dd7... 104 seconds
$VAR1 = {};

05c966... 317 seconds
$VAR1 = {};

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

06b1f8... 406 seconds
$VAR1 = {};

073b55... 173 seconds
$VAR1 = {};

0791de... 309 seconds
$VAR1 = {};

0801f9... 309 seconds
$VAR1 = {};

082478... 423 seconds
$VAR1 = {};

08596f... 323 seconds
$VAR1 = {};

08da4a... 313 seconds
$VAR1 = {};

08e2e1... 328 seconds
$VAR1 = {};

091e19... 323 seconds
$VAR1 = {};

093bad... in session
$VAR1 = {
          'Started' => '1',
          'Ended' => '1',
          'onstart' => '1615125536',
          'Count' => '10'
        };

093c14... 301 seconds
$VAR1 = {};

09a006... 317 seconds
$VAR1 = {};

09f3d0... 347 seconds
$VAR1 = {};

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

0b0d2b... 115 seconds
$VAR1 = {};

0bdc13... 171 seconds
$VAR1 = {};

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

0c8553... 181 seconds
$VAR1 = {};

0c9071... 391 seconds
$VAR1 = {};

0cae8a... 316 seconds
$VAR1 = {};

0cce6b... 404 seconds
$VAR1 = {};

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

0df4f4... 165 seconds
$VAR1 = {};

0df903... 339 seconds
$VAR1 = {};

0e1215... 460 seconds
$VAR1 = {};

0e56b6... 82 seconds
$VAR1 = {};

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

0ee841... 76 seconds
$VAR1 = {};

0f62f0... 302 seconds
$VAR1 = {};

0fe2da... 373 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