Response := IdHTTP1.post(sGetTokenURL,jsonstr);
当我用上面代码提交后,获取到的cookie 有效期时间是GMT时区,比北京时间少了8小时
如何才能使返回的Set-Cookie 有效期是正确的北京时间 ?要实现的是提交后,直接返回当前北京时间,
Set-Cookie: kdservice-sessionid=701c4651-3079-45cd-8bf7-61b7f0ad5b03; expires=Sun, 03-Nov-2024 22:01:40 .....
Date: Sun, 03 Nov 2024 21:01:40 ...
Content-Type: text/plain; charset=utf-8
Server: Microsoft-IIS/10.0
X-AspNet-Version: 4.0.30319
Set-Cookie: kdservice-sessionid=701c4651-3079-45cd-8bf7-61b7f0ad5b03; expires=Sun, 03-Nov-2024 15:01:40 GMT; path=/; HttpOnly
Set-Cookie: ASP.NET_SessionId=14geiyqhzyhigdxzsqajeii0; path=/; HttpOnly; SameSite=Lax
X-Powered-By: ASP.NET
Date: Sun, 03 Nov 2024 14:01:40 GMT
Connection: keep-alive
Content-Length: 295