2

I am about to use Storage.setItem() in one of my Angular project but wanted to check how does browser handle the scenario when two separate web apps try to set the storage with the same key.

  1. Does the previous value get overridden?
  2. Or does the browser have a way to seperate out storage for each individual web-application
java_doctor_101
  • 3,287
  • 4
  • 46
  • 78

1 Answers1

1

localStorage is set on a per domain basis. So keys won't clash if they are on different web applications in my opinion. See In HTML5, is the localStorage object isolated per page/domain?

KalyanLahkar
  • 835
  • 8
  • 21