This topic created in 379 days ago, the information mentioned may be changed or developed.
微信访问 H5 网页.使用 session cookie 方式保留用户信息. 现在发现启动浮窗之后再重新进入就需要登录.是不是微信退出之后. cookie 、LocalStorage 、SessionStorage 都会消失掉? 看微信社区说换成 token 的方式就可以了. 如果不换成方式的话. 有什么办法可以解决吗? 在不做公众号授权的情况下.
4 replies • 2025-12-04 07:43:47 +08:00
 |
|
我直说了无解
|
 |
|
我记得 LocalStorage 可以存很久
|
 |
|
把 sessionId 改到 URL 上就可以 session 有个模式就是 URL 模式 缺点就是不太安全
|