From c1fab759e4762267c3609ac2206c05b0a87dca79 Mon Sep 17 00:00:00 2001 From: billz Date: Tue, 29 May 2018 18:52:41 +0000 Subject: [PATCH] Moved session_start() before includes --- index.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.php b/index.php index 4194c1b7..e8c15645 100755 --- a/index.php +++ b/index.php @@ -18,6 +18,8 @@ * @see http://sirlagz.net/2013/02/08/raspap-webgui/ */ +session_start(); + include_once( 'includes/config.php' ); include_once( RASPI_CONFIG.'/raspap.php' ); include_once( 'includes/locale.php'); @@ -35,7 +37,6 @@ include_once( 'includes/themes.php' ); $output = $return = 0; $page = $_GET['page']; -session_start(); if (empty($_SESSION['csrf_token'])) { if (function_exists('mcrypt_create_iv')) { $_SESSION['csrf_token'] = bin2hex(mcrypt_create_iv(32, MCRYPT_DEV_URANDOM));