search

Home  >  Q&A  >  body text

"Because the "SameSite" attribute of the cookie "PHPSESSID" is set to "None" but the "Secure" attribute is missing, this cookie will be rejected in the future." What should I do if this problem occurs?

Because the "SameSite" attribute of cookie "PHPSESSID" is set to "None" but the "Secure" attribute is missing, this cookie will be rejected in the future.

打不倒的陶陶打不倒的陶陶1402 days ago5544

reply all(1)I'll reply

  • 灭绝师太

    灭绝师太2021-05-12 14:11:12

    The prerequisite for setting the "SameSite" attribute to "None" is that the Secure attribute must be set at the same time, such as: Set-Cookie: widget_session=abc123; SameSite=None; Secure (Cookies can only be sent through the HTTPS protocol), otherwise it will be invalid.

    reply
    0
  • Cancelreply