MDL-16335 remove unnecessary clone

Author: Peter Bulmer <peter.bulmer@catalyst.net.nz>
This commit is contained in:
peterbulmer 2008-09-07 03:20:32 +00:00
parent 454a6e7c4d
commit 210d7a46cd

View File

@ -1136,7 +1136,7 @@ class auth_plugin_mnet extends auth_plugin_base {
$uc = ini_get('session.use_cookies'); $uc = ini_get('session.use_cookies');
ini_set('session.use_cookies', false); ini_set('session.use_cookies', false);
$sesscache = clone($_SESSION); $sesscache = $_SESSION;
$sessidcache = session_id(); $sessidcache = session_id();
session_write_close(); session_write_close();
unset($_SESSION); unset($_SESSION);
@ -1155,7 +1155,7 @@ class auth_plugin_mnet extends auth_plugin_base {
session_name('MoodleSession'.$CFG->sessioncookie); session_name('MoodleSession'.$CFG->sessioncookie);
session_id($sessidcache); session_id($sessidcache);
session_start(); session_start();
$_SESSION = clone($sesscache); $_SESSION = $sesscache;
session_write_close(); session_write_close();
$end = ob_end_clean(); $end = ob_end_clean();