web-storage

Android 4.0 -> 4.3 (included) - Web storage lost between webview pages

久未见 提交于 2019-12-04 23:57:00
问题 I'm working on an Android project which relies on the WebView to browse multiple HTML pages stored on the device and submit the inputs toward the webview when it's needed for storing them in a database. Each page contains controls that are bound with jQuery towards previous / next pages, each page contains inputs of differents types (checkboxes, textfields, etc.). The last page contains a Submit buttons that uses the JSInterface to save the results inside a SQLite DB. Another button (in a

How secure is JWT

醉酒当歌 提交于 2019-12-04 19:23:05
I know this question is not anything new, possibly already been discuss all over the internet. I'm new to it but after some study, I agree that it is safe as anonymous could sniff the Token but unable to append anything on it. I'm planning to store JWT in HTML5Storage, and decode the payload for some in-sensitive information: DisplayName, email_address, and role_info and etc. Here is my question, could anonymous sniff my JWT Token and act on-behalf of me? If that is possible, how can I avoid that? In short, JWT by itself is not safe it's just clear text. JWT in basic terms is a standard

Share dom storage between http and https

倖福魔咒の 提交于 2019-12-03 16:32:23
问题 I would like a method of storing information on the client that can be accessed by both the SSL and nonSSL version of my site. localStorage is a great mechanism but it can only be accessed by the current protocol. I'd like to be able to store a piece of information via javascript on the non-ssl(http) portion of my site and access it on the SSL (https) portion of my site. Does anyone know of a good way to share stored client-side information between ssl and non-ssl pages? I know I can always

Android 4.0 -> 4.3 (included) - Web storage lost between webview pages

我的梦境 提交于 2019-12-03 15:36:44
I'm working on an Android project which relies on the WebView to browse multiple HTML pages stored on the device and submit the inputs toward the webview when it's needed for storing them in a database. Each page contains controls that are bound with jQuery towards previous / next pages, each page contains inputs of differents types (checkboxes, textfields, etc.). The last page contains a Submit buttons that uses the JSInterface to save the results inside a SQLite DB. Another button (in a custom top navigation bar) offers the same system. Results can be modified by accessing the first page

When should I use html5 sessionStorage?

末鹿安然 提交于 2019-12-03 08:42:44
问题 I've learned difference between sessionStorage (persist during session) and localStorage (persist forever if not deleted). I can see that localStorage can be used as better version of cookie. (more size, not traveling to server for each HTTP request like cookie does). But for sessionStorage , I'm thinking when should I use it effectively? I thought about user inputs into text fields in pageA and then moves onto pageB within the same tab or browser window, pageB can look up sessionStorage. I

Share dom storage between http and https

允我心安 提交于 2019-12-03 05:39:35
I would like a method of storing information on the client that can be accessed by both the SSL and nonSSL version of my site. localStorage is a great mechanism but it can only be accessed by the current protocol. I'd like to be able to store a piece of information via javascript on the non-ssl(http) portion of my site and access it on the SSL (https) portion of my site. Does anyone know of a good way to share stored client-side information between ssl and non-ssl pages? I know I can always default to a cookie.. but I hate the idea of having to send the cookie back and forth for every single

When should I use html5 sessionStorage?

天大地大妈咪最大 提交于 2019-12-02 22:39:54
I've learned difference between sessionStorage (persist during session) and localStorage (persist forever if not deleted). I can see that localStorage can be used as better version of cookie. (more size, not traveling to server for each HTTP request like cookie does). But for sessionStorage , I'm thinking when should I use it effectively? I thought about user inputs into text fields in pageA and then moves onto pageB within the same tab or browser window, pageB can look up sessionStorage. I can't really expand my guess more than the scenario above. Could anyone tell me how can sessionStorage

HTML5 web storage abstraction libraries

独自空忆成欢 提交于 2019-12-02 09:16:44
From what I've read of web storage in HTML5, there are a number of different storage options with varying support across different browsers. Are there any popular libraries for abstraction of web storage in HTML5 applications? There are a couple of YUI-based libraries for abstracting the underlying storage away: YUI 2: Storage Utility YUI 3: Storage Lite You'd need to port them if you wanted to use them with another library, though it looks like someone has already done that for jQuery . 来源: https://stackoverflow.com/questions/7385854/html5-web-storage-abstraction-libraries

How to get objectstore from indexedDB?

泄露秘密 提交于 2019-12-02 05:03:05
I have indexedDb on my app for web storage. I would like to get the store form the below code. var store = myapp.indexedDB.db.transaction(['tree_nodes'],'readwrite').objectStore('tree_nodes'); It returns error. I was well known of opening indexeddb database and version changing. The error is Uncaught TypeError: Cannot call method 'transaction' of null I was tried it with the break point. In that case it works fine without errors. How can i get the store? please help me. Thanks in advance! The error is probably because your db variable is null. This is almost always because you are trying to

Web Storage (sessionStorage and localStorage) in private browsing mode (incognito)

百般思念 提交于 2019-11-29 09:54:24
BACKGROUND The HTML5 Web Storage feature in modern browsers is accessed through Javascript commands such as: sessionStorage.setItem("username", "John"); localStorage.setItem("username", "John") The site Can I use indicates that browser support is near 90%. However , in the "Known Issues" tab, Can I use says: In private browsing mode, Safari, iOS Safari and the Android browsers do not support setting localStorage. MY QUESTION In private browsing mode, do Safari, iOS Safari and the Android browsers still support sessionStorage? jumpdart Android and chrome I believe allow you to access old keys