type
Post
status
Published
date
May 22, 2025
slug
summary
tags
全栈开发
category
移动开发
icon
password
本期视频主要是和朋友们一起探讨如何解决微信小程序中无Cookie,而导致无法自动存储SessionID的问题。这里我们提出,通过小程序读取服务器端发送过来的SessionID,使用本地存储器Storage来存储SessionID;同时在发出数据请求时,手动将存储在本地的SessionID取出来,并且放到请求的Header中,这样就可以和服务器进行正常的数据通信了,从而侧面实现了原本在APP和浏览器中的Cookie功能。
- Author:AD
- URL:https://www.adstudio.top/article/1fb3ef87-2a2a-805c-bf57-d3b695e78d9a
- Copyright:All articles in this blog, except for special statements, adopt BY-NC-SA agreement. Please indicate the source!













