(Last Updated On: 2018å¹´8æ13æ¥)PHPã®ã»ãã·ã§ã³IDç¨ã¯ããã¼ã¨ä»ã®ã¯ããã¼é¢æ°ã«SameSiteãµãã¼ãã追å ããã¾ãã https://wiki.php.net/rfc/same-site-cookie ããã«ããã¯ãã¹ãµã¤ãã»ãªã¯ã¨ã¹ãã»ãã©ã¼ã¸ã§ãªæ»æï¼CSRFãXSSï¼ãªã©ãç·©åã§ãã¾ãã ä»æ§ setcookie, setrawcookie, session_set_cookie_paramsã®ç¬¬4å¼æ°ï¼ç¬¬2å¼æ°ã«é åã¨ãã¦path, domain, secure, httponly, samesiteãè¨å®ã§ããã ä»ã¾ã§ã®å±æ§ã¯åå¥ã®å¼æ°ã¨ãã¦è¨å®ã§ãã¾ããããSameSiteã¯é åã¨ãã¦ã®ã¿è¨å®ã§ãã¾ãã åããµã¤ãããã®ãªã¯ã¨ã¹ãã®å ´åã®ã¿ã¯ããã¼ãè¨å®ããï¼samesite = Strict $cookie_opt = [ 'secure'
{{#tags}}- {{label}}
{{/tags}}