From: Michael M Slusarz Date: Fri, 5 Nov 2010 16:38:52 +0000 (-0600) Subject: Session fixes on test page X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=613327b7ffe9b302c621a8bb707b125308ce11cd;p=horde.git Session fixes on test page --- diff --git a/horde/test.php b/horde/test.php index c9f0e5c1e..25c999f4d 100644 --- a/horde/test.php +++ b/horde/test.php @@ -82,8 +82,8 @@ if (!class_exists($classname)) { $test_ob = new $classname(); /* Register a session. */ -if (!isset($_SESSION['horde_test_count'])) { - $_SESSION['horde_test_count'] = 0; +if (!$session->exists('horde', 'test_count')) { + $session->set('horde', 'test_count', 0); } /* Template location. */ @@ -109,7 +109,7 @@ case 'phpinfo': case 'unregister': echo ''; - unset($_SESSION['horde_test_count']); + $session->remove('horde', 'test_count'); ?> @@ -198,7 +198,7 @@ if ($config_output = $test_ob->requiredFileCheck()) {

PHP Sessions