2004-09-12 13:21:01 +00:00
|
|
|
<?php
|
2009-05-26 03:57:03 +00:00
|
|
|
// This file is part of Moodle - http://moodle.org/
|
|
|
|
//
|
|
|
|
// Moodle is free software: you can redistribute it and/or modify
|
|
|
|
// it under the terms of the GNU General Public License as published by
|
|
|
|
// the Free Software Foundation, either version 3 of the License, or
|
|
|
|
// (at your option) any later version.
|
|
|
|
//
|
|
|
|
// Moodle is distributed in the hope that it will be useful,
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
// GNU General Public License for more details.
|
|
|
|
//
|
|
|
|
// You should have received a copy of the GNU General Public License
|
|
|
|
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
2003-01-11 13:58:17 +00:00
|
|
|
|
2009-05-26 03:57:03 +00:00
|
|
|
/**
|
|
|
|
* This is a tiny standalone diagnostic script to test that sessions
|
|
|
|
* are working correctly on a given server.
|
|
|
|
*
|
|
|
|
* Just run it from a browser. The first time you run it will
|
|
|
|
* set a new variable, and after that it will try to find it again.
|
|
|
|
* The random number is just to prevent browser caching.
|
|
|
|
*
|
|
|
|
* @todo add code that actually tests moodle sessions, the old one only tested
|
|
|
|
* PHP sessions used from installer, not the real moodle sessions
|
|
|
|
* @package moodlecore
|
|
|
|
* @copyright 1999 onwards Martin Dougiamas {@link http://moodle.com}
|
|
|
|
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
|
|
|
*/
|
|
|
|
|
|
|
|
/** Include config {@see config.php} */
|
2008-06-25 17:31:23 +00:00
|
|
|
require '../config.php';
|
2003-01-11 13:58:17 +00:00
|
|
|
|
2008-06-25 17:31:23 +00:00
|
|
|
error('session test not reimplemented yet');
|
2003-01-11 13:58:17 +00:00
|
|
|
|
2008-06-25 17:31:23 +00:00
|
|
|
//TODO: add code that actually tests moodle sessions, the old one only tested PHP sessions used from installer, not the real moodle sessions
|
2003-01-11 13:58:17 +00:00
|
|
|
|
|
|
|
?>
|