function zen_session_recreate() { global $http_domain, $https_domain, $current_domain; if ($http_domain == $https_domain) { $saveSession = $_SESSION; $oldSessID = session_id(); session_regenerate_id(); $newSessID = session_id(); session_id($oldSessID); session_id($newSessID); if (STORE_SESSIONS == 'db') { session_set_save_handler('_sess_open', '_sess_close', '_sess_read', '_sess_write', '_sess_destroy', '_sess_gc'); } session_start(); $_SESSION = $saveSession; whos_online_session_recreate($oldSessID, $newSessID); } else { /* $saveSession = $_SESSION; $oldSessID = session_id(); session_regenerate_id(); $newSessID = session_id(); session_id($oldSessID); session_destroy(); session_id($newSessID); session_set_cookie_params(0, '/', (zen_not_null($http_domain) ? $http_domain : '')); session_id($newSessID); if (STORE_SESSIONS == 'db') { session_set_save_handler('_sess_open', '_sess_close', '_sess_read', '_sess_write', '_sess_destroy', '_sess_gc'); } session_start(); session_set_cookie_params(0, '/', (zen_not_null($current_domain) ? $current_domain : '')); session_start(); $_SESSION = $saveSession; */ } }
function session_recreate() { global $http_domain, $https_domain, $current_domain; if ($http_domain == $https_domain) { $saveSession = $_SESSION; $oldSessID = session_id(); session_regenerate_id(); $newSessID = session_id(); session_id($oldSessID); session_destroy(); session_id($newSessID); if (STORE_SESSIONS == 'db') { session_set_save_handler('_sess_open', '_sess_close', '_sess_read', '_sess_write', '_sess_destroy', '_sess_gc'); } session_start(); $_SESSION = $saveSession; whos_online_session_recreate($oldSessID, $newSessID); } }
function zen_session_recreate() { global $http_domain, $https_domain, $current_domain; if ($http_domain == $https_domain) { $saveSession = $_SESSION; $oldSessID = session_id(); session_regenerate_id(); $newSessID = session_id(); session_id($oldSessID); session_id($newSessID); session_set_save_handler('_sess_open', '_sess_close', '_sess_read', '_sess_write', '_sess_destroy', '_sess_gc'); $_SESSION = $saveSession; if (IS_ADMIN_FLAG !== true) { whos_online_session_recreate($oldSessID, $newSessID); } } }