éå»ã®è°è«ã¯ãã¡ã ä¸è¬çã«è¨ããã¦ãã対çã¨å®éã®æå¹æ§ã«ã¤ãã¦ã¯ãã¡ã ä¸è¬ã«CSRFã¯ã»ãã·ã§ã³ã®å©ç¨ã«ä¼´ãèå¼±æ§ãªã®ã ãããäºæ¸¬ä¸è½ãªæååãçæãã¦hiddenã¨ã»ãã·ã§ã³å (PHPã»ãã·ã§ã³ã®å ´å$_SESSIONå )ã«å ¥ãã¦ãããå®äºç»é¢ã§ãã®2ã¤ãç §ä¼ããæ¹æ³ã簡便ã§å ç¢ã ã¨èããããã(è¦ã¯ã»ãã·ã§ã³ã使ã£ãã¯ã³ã¿ã¤ã ãã¼ã¯ã³æ¹å¼)ã ãã®å¯¾çã ãã§ãå åã ããhiddenã横åããããå ´åã«çºçããèå¼±æ§ã«åããCookieã§ãæ¯è¼ãè¡ãã å®éã®ã³ã¼ã // 確èªç»é¢ session_start(); (èªè¨¼ãªã©ç¥) $uniq_id = md5(uniqid(rand(),1)); // æ¨æ¸¬ä¸å¯è½ãªæååãçæ $_SESSION['uniq_id'] = $uniq_id; // ã»ãã·ã§ã³ã«ä¿å setcookie('uniq_id',
{{#tags}}- {{label}}
{{/tags}}