購物車串接第三方金流 session 會被清空的原因

原因是出在 SameSite 的設定,請標明 cookie 中的 SameSite 屬性。

參考:

FAQ知識庫 | 綠界 ECPay 客服中心
綠界金流程式串接常見技術問題。

也請記得強制使用 https 。

舉個例子:
Set-Cookie: remote_session=abc123; SameSite=None; Secure

關於 SameSite 的介紹可參考:

SameSite | OWASP
SameSite on the main website for The OWASP Foundation. OWASP is a nonprofit foundation that works to improve the security of software.


已發佈

分類:

作者: