Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.4k views
in Technique[技术] by (71.8m points)

h5 嵌入app的cookie的思考

在app里面嵌入h5,现在需求需要用到cookie或者localstorage,经测试在安卓4.2的手机上面关闭app cookie或者localstorage都已经失效了,当前主流的系统手机不会出现问题,现在试想两者真的可以存到我们设置的时间吗?或者说ios和安卓是否有机制,对于webview的两者存储时间会带来影响呢?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

和正常的 web 一样啊。不过,还是推荐使用 SessionStorage 和 LocalStorage。


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...