Stack Exchange
Stack Overflow
Questions
Tags
Users
About
Stack Overflow
Public
Questions
Tags
Users
About
How many characters can a javascript session hold?
Asked
Jan 05 '19 at 21:14
Active
Jan 05 '19 at 21:14
Viewed
20 times
0
Basically what is says in the title.
console.log(sessionStorage.getItem("session");
javascript
session
asked Jan 05 '19 at 21:14
frosty
2,559
8
37
73
@trincot So it's 5MB per domain, not 5MB per variable?
–
frosty
Jan 05 '19 at 21:25
It does not matter how many keys you store. It is the combined volume that counts.
–
trincot
Jan 05 '19 at 21:27
@trincot What if it's on 2 different tabs? Is it 5MB per tab?
–
frosty
Jan 05 '19 at 21:31
The question is: is it the same session? That depends on how the tab or window was opened. This can be browser specific.
–
trincot
Jan 05 '19 at 21:34
@trincot Anyways, 5MB is enough to store 5 million characters, right? That's more than enough for anything.
–
frosty
Jan 05 '19 at 21:34
0 Answers
0