admin管理员组文章数量:1401592
I have two of my websites built with asp .In one web site I am creating a local Storage variable called count.In my another application i cannot access this local local storage variable.Two web sites are HtML 5 based.
Is there any way of accessing the local storage variable in another site also.
Thanks in Advance!!
I have two of my websites built with asp .In one web site I am creating a local Storage variable called count.In my another application i cannot access this local local storage variable.Two web sites are HtML 5 based.
Is there any way of accessing the local storage variable in another site also.
Thanks in Advance!!
Share Improve this question edited May 22, 2015 at 10:32 Pavlo 45k14 gold badges83 silver badges114 bronze badges asked May 22, 2015 at 10:30 bhanu.csbhanu.cs 1,3651 gold badge11 silver badges25 bronze badges 1- 1 local storage can't be shared – Sushant Commented May 22, 2015 at 10:31
2 Answers
Reset to default 6LocalStorage is like cookies: you can't access one other website's variables. It's designed to avoid malicious websites to access other website's personal data.
Basically,localstorage is an advanced version of cookies that we initially used(with enhanced storage capacity).The values can be stored in key value pairs and accessed along the course of the same application.In your case,it is not possible to use localstorage as it is crossapplication.
本文标签: javascriptAccess Local Storage variable in all the web sites viewed on a browserStack Overflow
版权声明:本文标题:javascript - Access Local Storage variable in all the web sites viewed on a browser - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744318502a2600379.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论