Session doen't get data

OK, so another note that you might not know, the storage only accept strings as values, so if you’re trying to save numbers, or anything you need to convert them to strings like this:

// Numbers, booleans
String(0); String(true);

// Objects and arrays
JSON.stringify({ key: value }); JSON.stringify([item1, items2]);

And when you get the values, convert them back to their original values.

let x = session.getItem(item);

// Numbers
let number = Number(x);

// Other values
let value = JSON.parse(x);

Hope this helps~!
Ahamd