session storage not working in IE

后端 未结 1 1577
一向
一向 2020-12-18 03:49

I am using the following code to test session storage of HTML 5.. It is working fine in all the browser except IE. The IE version installed is 10.

Code :

         


        
相关标签:
1条回答
  • 2020-12-18 04:40

    What I found with both local storage and session storage features of HTML5 is that, that both these features will work in Internet Explorer ONLY when the page is rendered through HTTP, and will not work when you are trying to access these features on your local filesystem, i.e. you are trying to open the sample webpage directly from the filesystem with the URL of the sorts, C:/Users/Mitaksh/Desktop , etc..

    Deploy your application over any application server like Tomcat,etc, and then access it.. and you can see both local and session storage in action then..

    0 讨论(0)
提交回复
热议问题