是否有饼干记住一个用户选择的方法吗? [英] Is there an alternative for Cookies to remember a users choice?

查看:109
本文介绍了是否有饼干记住一个用户选择的方法吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们(可能)有即将出台荷兰在那里我有,如果他们让我在我的网站使用Cookie来询问用户。
现在,它很容易,当他们说'是',因为我可以存储在cookie中。

we've (probably) got upcoming law in the Netherlands where i have to ask users if they allow me to use cookies on my site. Now it's easy when they say 'yes', because i can store that in a cookie.

您可以看到它的到来?我怎么能记得的用户选择,当他们说不

You can see it coming: how can i remember the users choice when they say 'no'?

我只使用cookies谷歌分析,这样我就可以用不回答生活,不想激怒否萨耶尔同样的问题每次访问。

I only use cookies for Google analytics, so i can live with the 'no' answer and don't want to irritate the 'No' sayer every visit with the same question.

推荐答案

本地存储在较为固定的持续支持的浏览器

Maybe Local Storage in supported browsers for more or less permanent persisting

这篇关于是否有饼干记住一个用户选择的方法吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆