Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

localStorage not accessible in IOS-6 Safari

I am not able to access localStorage in Safari (IPad with IOS-6).

For example, the following code is working fine in Windows on all browsers and on (iPad with iOS-5) but not in iOS-6:

localStorage.setItem("var","5");
alert(localStorage.getItem("var"));

Please help.

like image 422
Amber Avatar asked Nov 03 '12 11:11

Amber


1 Answers

I was able to fix the issue by turning off private browsing on the iPad. I came across the solution from the reference : https://github.com/cloudhead/less.js/issues/312#issuecomment-2994845

like image 175
Amber Avatar answered Oct 08 '22 08:10

Amber