In electron, is there any way to store data only until the app is quit? If I'm not mistaken, session storage is persisted across restarts, right?
Asked
Active
Viewed 177 times
0
-
Does this help? https://stackoverflow.com/a/32950922/15842737 - Also, no. Session storage is for the session, I think you might be looking for localStorage instead – savageGoat May 06 '21 at 09:33
-
@savageGoat So sessionStorage isn't persisted after exit? – Jake May 06 '21 at 12:46
-
@Jake what exactly are you storing? – akshayks May 06 '21 at 13:46
-
@jake no, sessionStorage exipres when the program closes. I searched it for you: https://www.geeksforgeeks.org/persisting-data-in-electronjs/ – savageGoat May 06 '21 at 15:15