How to retrieve session id?

How to retrieve session id?

by Peter de Jong -
Number of replies: 1

I see that when I play a SCORM course, the session key is in the URL. However, I'm not sure how I can retrieve the session id?

Which of these two is actually used by SCORM API to save Course Completion, etc. information?

Thank you.

Average of ratings: -
In reply to Peter de Jong

Re: How to retrieve session id?

by Matteo Scaramuccia -
Picture of Core developers Picture of Peer reviewers Picture of Plugin developers

Hi Peter,
what is your end goal?

Shortly, PHP sessions are used to keep a "state" between different requests while the SCORM tracking session depends on the <attempt> done by <a user> within <a SCO> of a package published in <an activity>, stored in the table named scorm_scoes_track:

  • id
  • userid
  • scormid
  • scoid
  • attempt
  • element
  • value
  • timemodified

They are unrelated.

HTH,
Matteo