]> git.mjollnir.org Git - moodle.git/commitdiff
Force to destroy the php session. Without this, some buggy PHP versions
authorstronk7 <stronk7>
Wed, 7 Jul 2004 19:35:28 +0000 (19:35 +0000)
committerstronk7 <stronk7>
Wed, 7 Jul 2004 19:35:28 +0000 (19:35 +0000)
can have problems under certain situations. :-)

admin/cron.php

index 9a110b0c25e0f602077c7c41364c80fe83ab8d89..9aeeb9fda3c6151bdb36bfcdb3c85b7ce4b7702d 100644 (file)
     echo $enrol->log;
 
 
+    //Unset session variables and destroy it
+    @session_unset();
+    @session_destroy();
+
     echo "Cron script completed correctly\n";
 
     $difftime = microtime_diff($starttime, microtime());