javascript - Is localStorage considered a cookie by the browser - Stack Overflow

I am making a small HTML page with Javascript. It won't need a server side, but i need store what

I am making a small HTML page with Javascript. It won't need a server side, but i need store what the person have done, so i am using localStorage.(A checklist)

Now a days browsers have the option to do not store cookies, and sites warns the user if they use cookies or not.

So my questions are:

1:I need to warn the user that data is being stored, but just in the client side?

2:Browsers considers localStorage and sessionSotrage a kind of a cookie? I mean, do not save the data when the user select to always erase the cookies or consider it a kind of a threat.

I am making a small HTML page with Javascript. It won't need a server side, but i need store what the person have done, so i am using localStorage.(A checklist)

Now a days browsers have the option to do not store cookies, and sites warns the user if they use cookies or not.

So my questions are:

1:I need to warn the user that data is being stored, but just in the client side?

2:Browsers considers localStorage and sessionSotrage a kind of a cookie? I mean, do not save the data when the user select to always erase the cookies or consider it a kind of a threat.

Share Improve this question asked Jul 22, 2015 at 14:46 ahwelpahwelp 872 silver badges8 bronze badges 5
  • 3 Cookies are cookies, localStorage is localStorage. – Dave Newton Commented Jul 22, 2015 at 14:48
  • Interesting question from that viewpoint. I wonder how long it will be before the EU cottons on and we'll end up with a new law forcing us to warn that our websites are storing data on user's devices in this fashion too. – James Thorpe Commented Jul 22, 2015 at 14:50
  • Is your question about the cookie law ? – Hacketo Commented Jul 22, 2015 at 14:57
  • 1 I didn't know there was a law for cookies. I mean, cookie storage things in client side, localStorage store things in client side. Media say that cookies will track you, people got crazy and block cookies and site data. And this way my app will not work. – ahwelp Commented Jul 22, 2015 at 15:37
  • 2 @ahwelp I just tested and the WebDevelopperTool plugin that can 'Disable Cookie' also block storage data.. – Hacketo Commented Jul 22, 2015 at 16:00
Add a ment  | 

1 Answer 1

Reset to default 5

I need to warn the user that data is being stored, but just in the client side?

It depends on the specific legislation that you are concerned about. In the UK, for instance, the wording of The Privacy and Electronic Communications (EC Directive) Regulations 2003 says:

, a person shall not use an electronic munications network to store information, or to gain access to information stored, in the terminal equipment of a subscriber or user unless the requirements of paragraph (2) are met.

While it is monly referred to as "The Cookie Law", it definitely does not apply solely to cookies.


Browsers considers localStorage and sessionSotrage a kind of a cookie?

No

I mean, do not save the data when the user select to always erase the cookies

When erasing them, Chrome bundles local storage with cookies. Doing a prehensive investigation into all the circumstances where all browsers allow the user to determine when cookies and local storage will be erased is a bit beyond the typical scope of a SO question though.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744404995a4572585.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信