Browse Source

Updated session variable removal code to avoid non-recording of SCORM progress - for elearningla #scorm

Yannick Warnier 13 years ago
parent
commit
9cb1fab3ac
1 changed files with 6 additions and 3 deletions
  1. 6 3
      main/course_home/course_home.php

+ 6 - 3
main/course_home/course_home.php

@@ -37,9 +37,12 @@ $use_anonymous = true;
 // Inlcuding the global initialization file.
 require dirname(__FILE__).'/../inc/global.inc.php';
 
-// Delete LP sessions
-unset($_SESSION['oLP']);
-unset($_SESSION['lpobject']);
+// Delete LP sessions - commented out after seeing that normal
+// users in their first learnpath step (1st SCO of a SCORM)
+// cannot have their data saved if they "Return to course homepage"
+// before any LMSFinish()
+//unset($_SESSION['oLP']);
+//unset($_SESSION['lpobject']);
 
 $htmlHeadXtra[] ='<script type="text/javascript">
 $(document).ready(function() {