Permalink
Browse files

Changed scoid passing method from SESSION to POST

  • Loading branch information...
bobopinna
bobopinna committed Jul 5, 2005
1 parent d5567f7 commit 4eaf7d4cb23cb83ccd2ccb28cfbdac28870f0b65
Showing with 4 additions and 2 deletions.
  1. +2 −2 mod/scorm/datamodel.php
  2. +1 −0 mod/scorm/datamodels/scorm1_2.js.php
  3. +1 −0 mod/scorm/datamodels/scorm1_3.js.php
View
@@ -29,8 +29,8 @@
require_login($course->id, false, $cm);
- if (confirm_sesskey() && (isset($SESSION->scorm_scoid))) {
- $scoid = $SESSION->scorm_scoid;
+ if (confirm_sesskey() && (isset($_POST['scoid']))) {
+ $scoid = $_POST['scoid'];
$result = true;
foreach ($_POST as $element => $value) {
if (substr($element,0,3) == 'cmi') {
@@ -506,6 +506,7 @@ function StoreData(data,storetotaltime) {
} else {
datastring = CollectData(data,'cmi');
}
+ datastring += '&scoid=<?php echo $sco->id ?>';
//popupwin(datastring);
var myRequest = NewHttpReq();
result = DoRequest(myRequest,"<?php p($CFG->wwwroot) ?>/mod/scorm/datamodel.php","id=<?php p($id) ?>&sesskey=<?php p($USER->sesskey) ?>"+datastring);
@@ -469,6 +469,7 @@ function StoreData(data,storetotaltime) {
} else {
datastring = CollectData(data,'cmi');
}
+ datastring += '&scoid=<?php echo $sco->id ?>';
//popupwin(datastring);
var myRequest = NewHttpReq();
result = DoRequest(myRequest,"<?php p($CFG->wwwroot) ?>/mod/scorm/datamodel.php","id=<?php p($id) ?>&sesskey=<?php p($USER->sesskey) ?>"+datastring);

0 comments on commit 4eaf7d4

Please sign in to comment.