session-storage Questions

3

Solved

I am trying to keep some data in sessionStorage, but if I refresh the page or leave from a link then come back, the sessionStorage no longer exists. I am new to sessionStorage, so sorry if this is...
Burro asked 4/3, 2015 at 17:48

2

I wrote an Excel add-in using the OfficeJS API about a year and a half ago and it has been working until about two weeks ago. It seems like Excel has had an update where I'm now allowed to right cl...
Nairn asked 5/4, 2021 at 18:40

3

Solved

I want to share my authentication token between browser tabs which would suggest to use HTML5 localStorage. But I don't want anything related to authentication to stay in my storage when the browse...

3

Solved

I am currently trying to store an array into sessionStorage and then retrieve the data from sessionStorage. Then, store the sessionStorage data back into an array. var testArray = ["Shirt", "Botto...
Cachinnate asked 28/6, 2016 at 18:2

9

Solved

I have some values in my site which I want to clear when the browser is closed. I chose sessionStorage to store those values. When tab is closed they are indeed cleared, and kept if the user presse...
Dizzy asked 2/12, 2013 at 10:16

5

Ok, so I have this simple example React component that interacts with sessionStorage: //App.jsx var React = require('react/addons'); var App = React.createClass({ handleSubmit: function (e) { ...
Brom asked 11/6, 2015 at 21:51

11

Solved

What are the technical pros and cons of localStorage, sessionStorage, session and cookies, and when would I use one over the other?
Houstonhoustonia asked 8/11, 2013 at 20:2

2

Solved

I'm writing Java based selenium-webdriver tests. The app that I'm testing sets certain values in storageSession e.g. sessionStorage.setItem("demo", "test"), how can I check and assert the value of ...
Anklet asked 19/12, 2014 at 11:43

2

Solved

I want to use localStorage on the client side and right now I am sending that data in the body of an AJAX request. However, it would be nice to be able to send the data with the page request. Is th...
Cloudcapped asked 26/9, 2014 at 17:44

2

Solved

I have a Chrome Extension that is only a content script. I want to persist some data that is calculated in the content script so I can easily access it while browsing without having to recalculate ...

10

Solved

SessionStorage and LocalStorage allows to save key/value pairs in a web browser. The value must be a string, and save js objects is not trivial. var user = {'name':'John'}; sessionStorage.setItem(...
Prohibitive asked 31/5, 2011 at 21:8

3

Solved

Hi everyone having a tough time updating a value that I am storing in sessionstorage. I tried a few ways to target the nested objects values with no luck. Any help would be greatly appreciated. Ob...
Void asked 26/9, 2018 at 21:31

1

Solved

I am using AWS Amplify / AWS Cognito for my web app. It would automatically put tokens in browser's localStorage. This is the expected behavior of SDKs. It adds the tokens to local storage so user ...

3

Solved

I am using sessionStorage to hold accessToken. My steps are as follows:- Login to website Click on duplicate option of tab. It will show the website in second tab. Log out from first tab. Expecti...
Adulterine asked 1/5, 2020 at 19:52

10

I have some javascript that checks for an object in sessionStorage, and uses it to refill an input field. I use this to help users on my site if they leave the form unfinished and either navigate a...
Various asked 13/4, 2016 at 16:46

2

Solved

I'm currently working in an app that keeps info in Session Storage. After the login process, I see the Session Storage being cleared and the DOM being refreshed back to the login screen. I'd like t...
Philemol asked 30/8, 2021 at 16:59

2

I just stumbled upon a problem where Chrome suddenly stopped propagating session storage information when application opened a new tab This was working fine before then stopped after Chrome 89 upda...
Endothelioma asked 4/3, 2021 at 10:50

2

I have a website which saves a stringified JavaScript object into the sessionStorage. It works well on desktop browsers - data survives over page reloads as per described on MDN. On Android phones...
Centenary asked 16/4, 2016 at 2:50

2

Solved

How can I set an expiration time on a specific local storage variable? Example: If I have a page disclaimer and once the user clicks "accept" I store a certain variable in the local storage. Howe...
Gulosity asked 5/12, 2018 at 17:42

5

Solved

Is it not posssible to retrieve all keys/objects that I stored in sessionStorage (or localStorage)? If I have done sessionStorage.name = 'John' and sessionStorage.city = 'New York', isn't there a ...
Cloverleaf asked 24/1, 2017 at 10:55

11

Solved

Apart from being non persistent and scoped only to the current window, are there any benefits (performance, data access, etc) to Session Storage over Local Storage?
Turkish asked 2/4, 2011 at 12:30

3

Solved

user: {firstName: "loki", lastName: "ch"} I am storing this user in session storage. $window.sessionStorage.user = user; when i retrieved it back using $window.sessionStorage.user, i got: [...
Tonga asked 15/1, 2016 at 18:49

1

I need to keep some data in indexedDB instead on sessionStorage as amount of data is more than 5 MB. I'm confused about cleanup strategy as in case of page reload or navigation to the other page I...
Drosophila asked 15/4, 2020 at 22:14

3

I want to store user related properties in sessionStorage and other properties in localStorage. I was able to store all properties in localStorage using persist with this below configuration impor...
Parvati asked 26/12, 2019 at 10:38

2

Solved

I want to have a script that will count the number of pages that a person hits during one session to my website, and possibly record each URL as well. The purpose is such that upon submitting a for...
Orange asked 21/11, 2019 at 11:57

© 2022 - 2024 — McMap. All rights reserved.