PHPでクロスサイトリクエストフォージェリ(CSRF)対策するときのメモ - Qiita

<?phpsession_start();//トークンをセッションにセットfunction setToken(){ $token = sha1(uniqid(mt_rand(), true))…