Skip to main content
Filter by
Sorted by
Tagged with
-2 votes
0 answers
21 views

how to find local storage is not defined?

ERROR ReferenceError: localStorage is not defined at _TableComponent.loadUsers (F:\task\training2\src\app\table\table.component.ts:51:30) at ToastrService (F:\task\training2\src\app\table\table....
vijay krishna's user avatar
0 votes
1 answer
39 views

Trying to get javascript variables on one php page to show in another using WYSIWYG Web Builder 19

I have a javascript in the head of the index page and this function stores the variables from the functions in localstorage: <script type="text/javascript"> function storeGlobals() { ...
rubidex's user avatar
1 vote
1 answer
45 views

Context state not setting properly in React

The title may be ambiguous but I am having a issue that redirects me to /home after I render the component assigned to /logout, whose job is to clear the storage and reset the AuthContext states. I ...
Diwas10's user avatar
  • 145
0 votes
0 answers
23 views

How set and get cross domain for local and session storage with selenium python?

I want to set local and session storage the site: "https:/example.org " and get them, one domain source will have - "web.op.org ", and the second one - "web.my_site.org " ...
zeroxxx's user avatar
0 votes
0 answers
32 views

How to store uploaded images from the user's device? [closed]

How is storing images uploaded by the user done? The website needs to remember pictures after it's been closed. It'll likely be accessed by opening the HTML file, if required I could add a domain. I ...
dejuancso's user avatar
-1 votes
1 answer
60 views

JWT Not Expiring on React

I am trying to expiring jwt token. Code is below; const token = jwt.sign(payload, process.env.JWT_SECRET, { expiresIn: 5 }); or const token = jwt.sign(payload, process.env.JWT_SECRET, { expiresIn: &...
Yousuf's user avatar
  • 1
0 votes
2 answers
54 views

Vanilla React Navbar non-reactive upon updating local storage

I have this react App structure. Some components are hidden based on the content of a local storage. import React from "react"; import { BrowserRouter as Router } from "react-router-dom&...
Squish's user avatar
  • 457
-1 votes
0 answers
20 views

Restore state of the page in Cypress

I have encountered the following problem. In the test I need to: save the state-local storage, log in with a different account, perform the action log in under the previous account and restore local ...
Alexander Wang's user avatar
0 votes
0 answers
15 views

Android 14 installed PWA deletes part of local storage on reverse proxied site

I have a web app/pwa that sits out on the cloud. It serves as a front-end and allows selection of a few internal sites that are reverse proxied upon selection. Both the front-end and the internal ...
mr.freeze's user avatar
  • 14k
1 vote
1 answer
35 views

Proving that LocalStorage Persists after tab close

I've read from internet - that "LocalStorage" data for a tab (persists) and has no expirty date - even after the tab or window is closed. Case_I: say I go to the website => https://www....
Deadpool's user avatar
  • 8,164
1 vote
0 answers
43 views

Angular app not retrieving localStorage/sessionStorage on deep links with current production .htaccess configuration

I'm working on an Angular 18 application that uses localStorage and sessionStorage to store user data. Everything works fine when I access the site using the root URL, like https://www.example.com/. ...
Alex Ibrahim Ojea's user avatar
1 vote
0 answers
40 views

Why does Angular 18 SSR seem like CSR in local tests?

I'm currently running an angular 18 SSR app in mi local machine; my app consumes a graphql api using apollo. I haven't errors with the functionality but when i check in the browser, in the inspections ...
Dr oscar's user avatar
  • 417
-2 votes
0 answers
36 views

How long is base64 url stored in local storage valid? [duplicate]

const scene = game.scene.getScene('default'); const canvas = scene.game.canvas; // set size of the screenshot const cropWidth = 350; const cropHeight = 400; // save the whole canvas as screenshot ...
account 0298's user avatar
-3 votes
0 answers
24 views

Does cross domain local storage work if one browser isn't open yet?

My use case is: I have a website A, inside website A I have a value (example: example1) stored inside local storage On website A, I then click a link that will take me to website B (a totally ...
newcoder00's user avatar
-2 votes
1 answer
38 views

Updating local-storage based on mapped components in React [duplicate]

I am trying to create a cart function, where I already have a way to create the cart in local storage with JSON. The problem arises when I try to add a way for the user to change the quantity of each ...
Ethan Deardorff's user avatar
1 vote
2 answers
53 views

How to set elements and their values in local storage using a class selector , querySelectorAll?

I am trying to make a to do list and right now when I press on the add task button 2 inputs and 1 select element are being created and displayed on the page.I save the content and display it and its ...
Ya Yeet's user avatar
  • 13
0 votes
1 answer
51 views

How to show only first line?

I am having trouble with this problem for a long time now. My problem is that I cannot figure out, how to save all the data from the Input Field to localstorage yet only show the first line in the ...
David's user avatar
  • 1
-1 votes
1 answer
64 views

Remembering dark mode between pages in local storage

I have this script toggle dark mode specified in my css but can't figure out how to make the dark mode stay on between pages. Thanks ahead! html: <img onclick="darkmode()" id="...
EliasG's user avatar
  • 11
-3 votes
1 answer
72 views

Adding array of objects to Local Storage [duplicate]

I'm doing simple to-do app and want to add the data of my projects to the local storage but since my array of Projects is made of project object which itself has array of tasks,I have trouble figuring ...
pkrzysiek's user avatar
0 votes
0 answers
56 views

The problem with the Yandex ID authorization settings

import React, { useEffect } from 'react'; function LoginYaID({ onAuthSuccess }) { useEffect(() => { if (window.YaAuthSuggest) { window.YaAuthSuggest.init( { ...
Mark Bannykh's user avatar
0 votes
0 answers
24 views

Flutter Hive, data not write to local

I created an app that fetches data from local storage using hive, when I tried to call the updateData, the data list is a empty list, here's my code home_page.dart: import 'package:flutter/material....
crownkiwifactoryNZ's user avatar
-1 votes
1 answer
31 views

Storing Array of Objects in LocalStorage [duplicate]

I am a beginner to Javascript. I am trying to print an array of objects from LocalStorage. I stringified the array before putting it in, then parsed it when retrieving it. In addition, I added a '...
Bagel Seeds's user avatar
0 votes
1 answer
33 views

Share local storage between site 'x' in a tab and the site 'x' inside an iframe of another site 'y'

Currently my site has a local storage key call isLoggedIn which is set to true after login. when the site is again opened in another tab then the new tab will also be logged in using the local storage ...
Sai Barath's user avatar
2 votes
1 answer
30 views

"Angular Firebase: User ID is null and localStorage Unavailable in SSR with isPlatformBrowser"

dashboard.component.ts : ngOnInit() { const userId = this.authService.getUserId(); if (userId) { this.loadProfileImage(userId); } else { console.error('User ID is null. ...
Mohamed Seif Ben Salah's user avatar
0 votes
0 answers
21 views

Chrome Extension Allow Site to Bypass Partitioned Storage

I'm creating a Chrome Extension and one feature relies on being able to iframe a 3rd party website. I'm modifying the headers to allow the site to be iframed but I'm running into issues because the ...
Beasley Smith's user avatar
-1 votes
1 answer
33 views

Can localStorage or sessionStorage be used instead of cookies in SimpleSAMLphp for session management?

I’m working on a web application that uses SimpleSAMLphp for SAML-based authentication. Currently, we use cookies to manage user sessions, including storing session tokens. Due to security concerns ...
Dhiren Patel's user avatar
2 votes
0 answers
148 views

Error: "Window.localStorage getter: Forbidden in a sandboxed document" in Next.js app

I'm encountering an issue with my Next.js application where some users receive the following error message: Window.localStorage getter: Forbidden in a sandboxed document without the 'allow-same-origin'...
Ajouve's user avatar
  • 10k
0 votes
1 answer
58 views

How to Prevent VueUse useStorage from Repopulating localStorage After Clearing localStorage?

I'm using Vue 3 along with VueUse's useStorage to synchronize some reactive state with localStorage. However, I'm encountering an issue where localStorage gets automatically repopulated with previous ...
Skeletor's user avatar
  • 3,395
0 votes
0 answers
28 views

running into a problem using local.storage while building a real time text editor in react

i have this little project where i built a text editor and i want it that when i select any part of the text it goes automatically to a form in the sidebar where the selected text can be edited then ...
nonono832's user avatar
0 votes
0 answers
65 views

Save files like image, video, pdf to LG WebOs Tv app local storage

I am developing a LG webOs tv app. In my application, I have some images and videos which needed to be downloaded from my backend and saved to the local storage to use it later. I was able to download ...
karthik vs's user avatar
0 votes
1 answer
36 views

Accessing Request Headers on Chrome Console

I am trying to run a script to send a GET request and it requires some headers. I am testing the values on the Browser Console and verifying the values before running the script. I am using this ...
Navjot Singh's user avatar
0 votes
0 answers
39 views

realm swift takes too much time to deleteAll(). i generally have around 6k-7k Objects to be deleted using deleteAll

I'm using Realm Swift in my iOS application, and I'm facing performance issues when trying to delete a large number of objects from the database. Specifically, I have around 6,000 to 7,000 objects ...
kunj Barvaliya's user avatar
0 votes
0 answers
22 views

Managing Complex Data with SharedPreferences in School ERP Apps

I'm currently working on three ERP apps for schools in a small IT company. Each app implements multiple login functionality using SharedPreferences to store user data. However, the data is quite ...
Sumit Singh's user avatar
0 votes
1 answer
32 views

Page Reload Cart Contents not Updating for E-Commerce Website

so I am creating an E-commerce website. I'm not sure whats wrong with my javascript but when I add an item to the cart and then go to a different page its not update the contents in the cart or the ...
jasmine's user avatar
0 votes
0 answers
28 views

javascript: data submit from button randomly not working [duplicate]

I am setting up an e-commerce webshop, and would like to have the buttons either show "Add to cart" in red or "Added to cart" in green. I have a working shop without this feature, ...
Rumi's user avatar
  • 11
0 votes
1 answer
30 views

Local storage doesn't work on reload. Why?

I have a list of items that should be saved if they are open also an 'active' item that is currently previewed. Everything disappears on reload. const Projects = () => { const [allProjectsOpen,...
tlaukkan's user avatar
1 vote
2 answers
30 views

React client-side mock-up question: managing state v.s localStorage

I'm creating a client-side only mockup of a gym-class management system. I have a models folder with javascript dummy user objects that will provide default user credentials and info. However, I want ...
Jake Choi's user avatar
0 votes
0 answers
33 views

I'm writing code in react, and trying to display a pdf file inside a web page. but instead of the expected file, I see the same web page in that place

I'm writing code in react, and trying to display a pdf file inside a web page. but instead of the expected file, I see the same web page in that place. It means that there is a place destinated to ...
Delakour's user avatar
0 votes
1 answer
28 views

Handling large amounts of data efficiently in a MEAN stack application while ensuring data consistency can be challenging

I am facing technical issues with handling a large amount of data in my MEAN stack application. To avoid repeatedly calling the API, I have implemented local storage to cache the data. If the same ...
ihtizaz ahmad's user avatar
0 votes
0 answers
36 views

How to get access token from local Storage when using python and selenium webdriver

I using Python and Selenium to implement automation test for case refresh token with access token store in localStorage. I can log in successfully and when try to print out value from localStorage it ...
Cường Trần Văn's user avatar
1 vote
2 answers
63 views

localStorage Value is Stored and Loaded Correctly but Not Applied to Checkbox Input

I am trying to use localStorage to store and load the checked state of a checkbox. The values are being correctly stored and retrieved from localStorage, but the checkbox is not reflecting these ...
Muhammad Aleem's user avatar
1 vote
0 answers
42 views

Local Storage Form Array Overwritten After Refresh

I'm working to store input data from a Squarespace form to local storage. The objective is to persist all form fields locally, until the form is submitted. This way, users don't lose any data if they ...
Andy Quella's user avatar
-1 votes
1 answer
25 views

I've can't be able to make that the new task stand in task-box as a button after close and open the browser using localStorage

I want to be able to scale a class-project using localStorage, saving the text into a button and when I refresh the browser that keep and, delete it when I want, since said button already is ...
Piero Bustamante's user avatar
0 votes
1 answer
171 views

Blazor NET8 localStorage getItem gives IJSRuntime error or disconnects from server

I am updating a Blazor hosted web app from net6 to a Blazor Web App in net8, and have been unable to retrieve an item from local storage. I can successfully SET the item in localStorage, and after I ...
user13814551's user avatar
0 votes
2 answers
102 views

TypeError: type 'String' is not a subtype of type 'Map<String, dynamic>'

I am trying to get data from local storage and display it on the screen using flutter_bloc, but I am getting the error "type 'String' is not a subtype of type 'Map<String, dynamic>'". ...
Meet Bhanderi's user avatar
1 vote
1 answer
30 views

Having difficulty is using the wait time in the selenium + Jmeter where am trying to extract the userid from the local storage of the application

Can any one show how to extract the local storage value in the jmeter. var pkg = JavaImporter(org.openqa.selenium, org.openqa.selenium.support.ui); var jmeterVariables = org.apache.jmeter.threads....
ayesha hyder's user avatar
0 votes
1 answer
45 views

localStorage in javascript Does not update score if placed outside of function

I have this code when when you click a button, it randomly generates a win or lose count; I want to save the score of the win/lose counts so even when the page is refreshed I can still continue. My ...
Rahand hemin's user avatar
0 votes
0 answers
59 views

Nothing is being saved at local storage

I started writing JS code 3 weeks ago and currently I am trying to build a game-however for the past couple of days ran into a problem concerning the way I use local storage- basically the data is ...
CFHVDOPFBD's user avatar
0 votes
1 answer
55 views

How to make update function in crud

i'm trying to make an edit function in crud using js and i can't make it the problem is that the row doesn't update when i click on the edit button the info appears in the input fields again but when ...
Nour's user avatar
  • 11
0 votes
0 answers
12 views

What I am doing wrong in the below code(logic) debugging Code for handling in User?

I need to handle Privacy Policy and Terms & Conditions Versions for User Authentication. I have added below code, where I want to check if the current user is new user or existing user. If the ...
Sahana Dattatreya Hegde's user avatar

1
2 3 4 5
211