对于大多数现代浏览器,是否可以在启用Cookie时禁用会话或本地存储?还是自动禁用Cookie,禁用会话/本地存储的使用?
解决方法
我所能找到的是
W3C Web Storage Specification的第6.1节:
Treating persistent storage as cookies
If users attempt to protect their privacy by clearing cookies without also clearing data stored in the local storage area,sites can defeat those attempts by using the two features as redundant backup for each other. User agents should present the interfaces for clearing these in a way that helps users to understand this possibility and enables them to delete data in all persistent storage features simultaneously.
浏览器“应该”同时删除,但是没有关于本地存储和cookie的单独切换的建议.
也就是说,在IE 11中,我可以使用disable DOM storage,但启用了cookies.相反,禁用Cookie对DOM存储没有影响.在FF& Chrome最新的禁用Cookie似乎也会禁用DOM存储.