Action on "Invalid Session ID" Returned from LMS

Nov 13, 2011

Hello,

I can't find any information on how to shut down an Articulate course when the LMS returns an error code of 3 which is "Invalid Session ID".

I can see how I could check the return code and I can use javascript to close the window, but before the window can close, a browser popup asking the learner if he/she will allow the window to close.  If the learner says, "OK", then the window closes.  That's great.

If the learner says no, then the learner can continue on with the course.  We don't want the learner to be able to continue.  We'd like to be able to shut down the course using javascript.

I don't know if that is even possible.  Any input would be appreciated.

Thanks,

Dana

5 Replies
Dana Baillie

Hey Brian,

Yes, under normal conditions, the LMS should control closing the course.  I actually work for the company that owns the LMS.  It is a proprietary LMS.

Unfortunately, the way the interactions work for this particular client is that their intranet has a link that sends a request to our LMS and also opens a window to contain our response.  We send the "index_lms.html" with required parameters and the course is off to the races.

The problem is that we now have no way to exit the course from the LMS end.  We can not shut it down and we can not close the window.  The only way to do do any of this is through the AICC_PutParamFailed function in the javascript files that included with the course.  We can ignore all of the PutParam requests that come in every 10 minutes, but the learner is still plugging away at the course because it hasn't closed.

I have added a call to the "ConcedeControl" function, but it prompts the learner for permission to close the window.  We don't want to give them the option.

It's an ugly situation.

Thanks,

Dana

Dana Baillie

Ok.  I figured out how to get the deed done.

In the "AICC_PutParamFailed" function, I added the following line of code:

window.document.location.href = EXIT_TARGET;

EXIT_TARGET is set to:  "lms/goodbye.html"

This unloads the course which sends it's final PUTPARAM and EXITAU requests before being replaced with goodbye.html.

Works for me.

Thanks,

Dana

This discussion is closed. You can start a new discussion or contact Articulate Support.