Forum Discussion

johnfaulkes's avatar
johnfaulkes
Community Member
2 days ago

Local Storage question

Following a helpful thread about this, I've managed to get sending to local storage working in SL, and retrieving from local storage into another SL, just what I need for use in a Rise project.

One JS trigger element I saw in this guidance, was an initial 'clear local storage' line.

Will that clear all local storage from the learner's machine? For example, anything that has been saved there from other learning packages?

Cheers

John.a.

1 Reply

  • Nedim's avatar
    Nedim
    Community Member

    localStorage.clear() removes all key/value pairs for the current origin (domain + protocol + port). It does not clear local storage for other domains or other websites. In other words: if your Rise course and all associated Storyline content (multiple learning packages) are served from the same domain, then localStorage.clear() will remove all local storage items for that domain, including any other courses or assets saved previously.