Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.3k 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 Reply

0 votes
by (71.8m points)

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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...