init.php修改if (!defined('INIT_NO_USERS')) { include(ROOT_PATH . 'includes/cls_session.php'); $sess = new cls_session($db, $ecs->table('sessions'),
init.php
修改
if (!defined('INIT_NO_USERS'))
{
include(ROOT_PATH . 'includes/cls_session.php');
$sess = new cls_session($db, $ecs->table('sessions'), $ecs->table('sessions_data'));
define('SESS_ID', $sess->get_session_id());
}
为
if (!defined('INIT_NO_USERS'))
{
include(ROOT_PATH . 'includes/cls_session.php');
$sess = new cls_session($db, $ecs->table('sessions'), $ecs->table('sessions_data'));
//define('SESS_ID', $sess->get_session_id());
}
在最下面加
if($_COOKIE['randnumber']==""){
setcookie("randnumber",rand(0,1000),time()+86400);
}
define('SESS_ID', md5($_COOKIE['randnumber'].real_ip()));