Archived
1
0

Admin interface security improved, thanks to Stefan Esser.

This commit is contained in:
Garvin Hicking
2007-07-12 11:23:05 +00:00
parent 472432b1b9
commit 0c41b7b558
5 changed files with 44 additions and 14 deletions

View File

@@ -16,8 +16,7 @@ if (!headers_sent()) {
// and be regenerated with a system-generated SID.
// Patch by David Vieira-Kurz of majorsecurity.de
if (!isset($_SESSION['SERVER_GENERATED_SID'])) {
session_destroy();
session_regenerate_id();
session_regenerate_id(true);
session_start();
header('X-Session-Reinit: true');
$_SESSION['SERVER_GENERATED_SID'] = true;