Skip to content
Snippets Groups Projects
Commit a7e2e048 authored by Melvin van Gent's avatar Melvin van Gent
Browse files

handling sessions through localStorage

Former-commit-id: d0d13f1e1a42e4663ce65b1bbfd90bf0d5d71cfe
parent 49c1a268
No related branches found
No related tags found
No related merge requests found
......@@ -31,6 +31,21 @@
{
alert("OOPS! VISTOMS unfortunately does not work properly on " + bowser.name + ". Please use a different browser to see its awesome visualization features!")
}
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) {
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment