From 313012f034c13826fd2af2e4ae9d1ac36d9d0590 Mon Sep 17 00:00:00 2001 From: Savetheinternet Date: Fri, 2 Dec 2011 15:10:20 +1100 Subject: [PATCH] removed cookies that have been superfluous and unused for a year --- inc/user.php | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/inc/user.php b/inc/user.php index 223eba64..2c11ded0 100644 --- a/inc/user.php +++ b/inc/user.php @@ -8,25 +8,3 @@ // 'false' means that the user is not logged in as a moderator $mod = false; - // Set the session name. - session_name($config['cookies']['session']); - - // Set session parameters - session_set_cookie_params(0, $config['cookies']['jail']?$config['root']:'/'); - - // Start the session - session_start(); - - // Session creation time - if(!isset($_SESSION['created'])) $_SESSION['created'] = time(); - - if(!isset($_COOKIE[$config['cookies']['hash']]) || !isset($_COOKIE[$config['cookies']['time']]) || $_COOKIE[$config['cookies']['hash']] != md5($_COOKIE[$config['cookies']['time']] . $config['cookies']['salt'])) { - $time = time(); - setcookie($config['cookies']['time'], $time, time()+$config['cookies']['expire'], $config['cookies']['jail']?$config['cookies']['path']:'/', null, false, true); - setcookie($config['cookies']['hash'], md5($time . $config['cookies']['salt']), $time+$config['cookies']['expire'], $config['cookies']['jail']?$config['cookies']['path']:'/', null, false, true); - $user = Array('valid' => false, 'appeared' => $time); - } else { - $user = Array('valid' => true, 'appeared' => $_COOKIE[$config['cookies']['time']]); - } - -?> \ No newline at end of file