MDL-35129 add missing recordset closing in db transfer
[moodle.git] / lib / session-test.php
blobf38479f3ade1ce4588775a085648aaa68d7d75d5
1 <?php
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.
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/>.
17 /**
18 * This is a tiny standalone diagnostic script to test that sessions
19 * are working correctly on a given server.
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.
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
32 /** Include config {@see config.php} */
33 require '../config.php';
35 $PAGE->set_url('/lib/session-test.php');
37 error('session test not reimplemented yet'); //DO NOT localize or use print_error()!
39 //TODO: add code that actually tests moodle sessions, the old one only tested PHP sessions used from installer, not the real moodle sessions