Hello, I using Lazarus 3.0 and Fpc 3.2.2 (the last stable Lazarus revision).
The problem is TFPHTTPClient, that only stores the first cookie. I recibe this from the server:
Set-Cookie: -http-session-=16::http.session::b3997d393228c57235348486e88227c7; path=/; secure; httponly; SameSite=None
Set-Cookie: ABBCX=1507337; path=/; secure; httponly; SameSite=None
Vary: Accept-Encoding
Content-Type: application/hal+json;v=2.0
X-Content-Type-Options: nosniff
Date: Tue, 09 Jan 2024 11:23:42 GMT
Cache-Control: no-cache="set-cookie", max-age=0, no-cache, no-store
Content-Length: 12181
X-XSS-Protection: 1; mode=block
Connection: close
Pragma: no-cache
Expires: -1
Accept-Ranges: bytes
As you can see that the servers sends two orders "Set-Cookie". In this case TFPHTTPClient stored this:
Cookies stored at TFPHTTPClient
-http-session-=23::http.session::e282e5ab2b7bed57a8267a11c0b9e673
path=/
secure
httponly
SameSite=None
ABBCX=1966090
path=/
secure
httponly
SameSite=None
If I send back this information I got a error 401 Unauthorized. So the solution that I found was clear the cookies and store only this two lines:
-http-session-=23::http.session::e282e5ab2b7bed57a8267a11c0b9e673
ABBCX=1507337
The problem is that cookie property stores the cookie name, the value and all optional parameters of the cookie.
Take a look of this document
https://developer.mozilla.org/en-US/docs/Web/HTTP/CookiesOf course I can be wrong, because I'm not a expert in this area
/BlueIcaro