NCCOOS Trac Projects: Top | Web | Platforms | Processing | Viz | Sprints | Sandbox | (Wind)

root/Chameleon/trunk/Chameleon/KeepSessionAlive/KeepSessionAlive.php

Revision 13 (checked in by jcleary, 17 years ago)

Latest Chameleon code checkout from previous repository

Line 
1 <?php
2 include( "../session.inc.php" );
3 if (PHP_OS == "WINNT" || PHP_OS == "WIN32")
4 {
5     if (!extension_loaded( "gd" ))
6     {
7         dl( "php_gd2.dll" );
8     }
9 }
10 else
11 {
12     if (!extension_loaded("gd"))
13     {
14         dl( "php_gd2.so" );
15     }
16 }
17 if (isset($_SESSION['KeepSessionAlive']))
18     $_SESSION['KeepSessionAlive'] ++;
19 else
20     $_SESSION['KeepSessionAlive'] = 0;
21 session_write_close();
22
23 header("Content-type: image/png");
24 $oImg = imagecreate( 1, 1 );
25 $nColor = imagecolorallocate( $oImg, 255, 0 , 0 );
26 imagecolortransparent( $oImg, $nColor );
27 imagepng( $oImg );
28 exit;
29 ?>
Note: See TracBrowser for help on using the browser.