Questions tagged as 'localstorage'

2
answers

Differences between localStorage Vs sessionStorage?

What are the differences, pros and cons between localStorage and sessionStorage ?     
asked by 06.06.2014 / 02:22
1
answer

Colapse Menu after page refresh with localStorage

How can I close a menu and keep it closed after the refresh of the page using jQuery only? It would be something like in this link . When you click the menu, the menu is reduced and so remains after the refresh page. When you click the...
asked by 16.04.2014 / 23:34
1
answer

Save image link as file in local storage

How can I save a link ( http://example.com/img.png ) in the file format, which in this case is .png, using JavaScript and saving local storage with $localStorage of AngularJS?     
asked by 26.11.2015 / 17:03
4
answers

How to control when localstorage data expires?

I'm storing some data in the localstorage of the browser and would like to set an expiration date for this data, but I do not find a way to control when that data expires . Does this data have any control over when it will be discarded?...
asked by 29.01.2014 / 20:20
3
answers

How do I get Local Storage to expire?

I have a certain scenario where I need the user to be login and stay connected for some time. However, if page inactivity is detected after a time, perhaps 20 minutes, the < Local Storage invalidating the saved information. To set a va...
asked by 22.01.2017 / 19:22
1
answer

How to pick up / drop object in localstorage?

I'm sending a JSON object to localStorage : window.localStorage.setItem('tarefa',aux); And I try to get this object on another controller like this: $scope.tarefa=window.localStorage.getItem('tarefa') However, when displaying on...
asked by 21.03.2017 / 14:49
2
answers

Remove disabled attribute when a condition is satisfied

Good evening. I'm trying to make a log and login screen for an application that will save the data to localStorage . To prevent the user from registering with incomplete data, I disabled the submit button using disabled . My in...
asked by 15.04.2017 / 06:55
1
answer

Local Storage or Cookie, where is it better to store an authorization token?

We have a project and we will use token de autorização , we are using AngularJs for front end and back we develop in Java using Spring Framework and Spring Security , and send token header ....
asked by 28.10.2016 / 13:05
2
answers

Use Cookie or LocalStorage?

I was developing a plugin for jQuery and needed to store some information. I thought about using localStorage of HTML5 , however I was alerted by a friend that in some old versions of browsers it would not work, and that I should...
asked by 23.01.2015 / 15:55
1
answer

Does LocalStorage have any storage limitations?

I need to store a very large number of words / phrases in the user's browser, I wonder if using localStorage is a good option. If so, is there any restriction / limit on the amount of information I can store?     
asked by 30.11.2014 / 20:03