Forum Discussion
Reflection activity on a shared device
How are the reflections being saved?
- KateMackenzie17 days agoCommunity Member
Hi! Currently, they are saved into local storage
div.querySelector('textarea').addEventListener('input', (e) => {
localStorage.setItem(id, e.target.value);
});
- AndrewBlemings-17 days agoCommunity Member
Depends on your implementation, but I'd expect the cookie's ID to be the determinant. Where I work, we use Workday for our LMS and it can return the learner's LMS ID to the course, which if it were me, I would use as the ID for the cookie.
For example if a user with the employee ID of 123456 were navigating your course, one could save the first reflection response with an ID of 1234561, the second with an ID of 1234562, and so on. And then when the course loaded, the course could load a cookie by affixing the employee ID with the relevant number. The cookies would still technically be visible by anyone savvy enough to seek them out, but at that point they almost deserve it... That general ID schema would eliminate the course loading a cookie that doesn't correspond to the active user though.
Do you have insight into how that ID is generated?
- KateMackenzie17 days agoCommunity Member
Hi - yes I've tried to work out the ID and didn't have much joy as it's a WAY out of my realm of skill!
Our LMS is a moodle one, so I will dig a bit more and see if I can work it out (not holding out much hope - but I love a challenge... or at least our IT guy does - he holds my hand a bit and then stands back and chuckles at my attempts to doggy paddle!)
Related Content
- 5 months ago