dcb1bd3c |
1 | <?php |
b37eac91 |
2 | // This file is part of Moodle - http://moodle.org/ |
3 | // |
4 | // Moodle is free software: you can redistribute it and/or modify |
5 | // it under the terms of the GNU General Public License as published by |
6 | // the Free Software Foundation, either version 3 of the License, or |
7 | // (at your option) any later version. |
8 | // |
9 | // Moodle is distributed in the hope that it will be useful, |
10 | // but WITHOUT ANY WARRANTY; without even the implied warranty of |
11 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | // GNU General Public License for more details. |
13 | // |
14 | // You should have received a copy of the GNU General Public License |
15 | // along with Moodle. If not, see <http://www.gnu.org/licenses/>. |
6b72b9a9 |
16 | |
b37eac91 |
17 | /** |
18 | * This is a tiny standalone diagnostic script to test that sessions |
19 | * are working correctly on a given server. |
20 | * |
21 | * Just run it from a browser. The first time you run it will |
22 | * set a new variable, and after that it will try to find it again. |
23 | * The random number is just to prevent browser caching. |
24 | * |
25 | * @todo add code that actually tests moodle sessions, the old one only tested |
26 | * PHP sessions used from installer, not the real moodle sessions |
27 | * @package moodlecore |
28 | * @copyright 1999 onwards Martin Dougiamas {@link http://moodle.com} |
29 | * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later |
30 | */ |
31 | |
32 | /** Include config {@see config.php} */ |
6800d78e |
33 | require '../config.php'; |
6b72b9a9 |
34 | |
a6855934 |
35 | $PAGE->set_url('/lib/session-test.php'); |
6b72b9a9 |
36 | |
afda07d5 |
37 | error('session test not reimplemented yet'); //DO NOT localize or use print_error()! |
1a198dde |
38 | // |
117bd748 |
39 | //TODO: add code that actually tests moodle sessions, the old one only tested PHP sessions used from installer, not the real moodle sessions |