function session_regenerate_id() { $tv = gettimeofday(); $buf = sprintf("%.15s%ld%ld%0.8f", $_SERVER['REMOTE_ADDR'], $tv['sec'], $tv['usec'], php_combined_lcg() * 10); session_id(md5($buf)); setcookie('PHPSESSID', session_id(), NULL, '/'); return TRUE; }
function session_regenerate_id() { global $base_uri; $tv = gettimeofday(); sqgetGlobalVar('REMOTE_ADDR', $remote_addr, SQ_SERVER); $buf = sprintf("%.15s%ld%ld%0.8f", $remote_addr, $tv['sec'], $tv['usec'], php_combined_lcg() * 10); session_id(md5($buf)); if (ini_get('session.use_cookies')) { sqsetcookie(session_name(), session_id(), 0, $base_uri); } return TRUE; }