diff --git a/kadmos/vistoms/templates/VISTOMS_sessions.html b/kadmos/vistoms/templates/VISTOMS_sessions.html index f49204aec93795f2a234f826737bf58332b3c0d7..c2b4f9885a08650e8ffc4ea0ec4411e1d40885fb 100644 --- a/kadmos/vistoms/templates/VISTOMS_sessions.html +++ b/kadmos/vistoms/templates/VISTOMS_sessions.html @@ -31,6 +31,22 @@ { alert("OOPS! VISTOMS unfortunately does not work properly on " + bowser.name + ". Please use a different browser to see its awesome visualization features!") } + + /* see docs: https://developer.mozilla.org/en-US/docs/Web/API/Window/localStorage */ + if (window && window.localStorage) + { + var storage = window.localStorage; + var existingSessionId = storage.getItem('sessionId'); + if (existingSessionId) + { + sessionID = existingSessionId; + } + else { + storage.setItem('sessionId', sessionID); + } + } + + //aigner: Include function function include(arr,obj) {