January 8, 2010 at 4:25 PM #277177
Thanks for your replies.
“Are you running these from an LMS? If not, you are in for problems. IE only supports a 4K cookie. With 25 modules, sounds like you might exceed that limit and the later courses would push out data from earlier ones. Also, if variables have the same name, there is the potential that they will use the value from other modules especially if you publish with the Generate short ASCII HTML page names option checked. I have used that to my advantage before when I wanted to share variables between modules.”
It’s one of the topics on which I hope to present at the Lectora User Conference (plug – plug – plug).
If you need to retain the variable values BETWEEN browser sessions – you’re going to have to store this data on a database – BUT even that is simple using dynamic script injection and JSON data format. Again – something I hope to present at the LUC 2010. That’s a discussion that will take too long for this forum – but with a little ingenuity using cookies (as long term storage) and the session variable construct (as short term storage) you should be able to do what you are looking to do – – I know because we have built course that already do what you are trying to do using these technologies.”
As this project is being delivered globally to individuals and the project is too far down the line, I dont think I can take on your suggestion of using a database, but thanks.
“What kind of variables are you saving? Location data? Quiz Data? That information will help out.”
The only variables I am saving are the menu variables I have used to show ticks when a section is completed. So with 25 modules comes 25 menus. Each module has on average 7 sections. The variables I have used are session variables. It all works great and ticks are shown when completed and when the user returns to each menu, all is correct.
All 25 seperately published modules are accessed from a seperately published main menu. If they were all published together as 1 great huge beast of course then I wouldnt have a problem at all, as I could just have a button resetting all variables. Because the courses are published seperately I dont know how do this – if at all possible. So would deleting the Lectora cookie be the best option to “reset” all the menu variables I have saved?! Or get them to reset their browser cookies?
Hope this makes a bit more sense what I need to achieve and answers your questions put to me.
You must be logged in to reply to this topic.