この内容は古いバージョンです。最新バージョンを表示するには、戻るボタンを押してください。
バージョン:3
ページ更新者:guest
更新日時:2026-05-16 16:49:32

タイトル: The page has expired due to inactivity. Please refresh and try again.
SEOタイトル: Laravel The page has expired due to inactivity. の対処 (CSRF)

この本文には実行可能なタグ等が含まれるため、安全のためHTMLソースとして表示しています。本文データは変更していません。

<h2>エラー内容</h2>

<table border="1" cellpadding="1" cellspacing="1" style="width:1000px">
	<tbody>
		<tr>
			<td style="background-color:#000000">
			<p><span style="color:#ffffff">The page has expired due to inactivity. &nbsp; Please refresh and try again.</span></p>
			</td>
		</tr>
	</tbody>
</table>

<p>&nbsp;</p>

<h2>発生条件/原因/対処法</h2>

<p>POSTのformタグ内で<strong>{{ csrf_field() }}</strong>を記述していないことが原因。</p>

<table border="1" cellpadding="1" cellspacing="1" style="width:1000px">
	<tbody>
		<tr>
			<td style="background-color:#000000">
			<p><span style="color:#ffffff"><form method="POST" action="{{ route('test') }}"></span></p>

			<p><span style="color:#ffffff">&nbsp; &nbsp; </span><span style="color:#f1c40f">{{ csrf_field() }}</span></p>

			<p><span style="color:#f1c40f">&nbsp; &nbsp; </span><span style="color:#ffffff">...</span></p>

			<p><span style="color:#ffffff"></form></span></p>
			</td>
		</tr>
	</tbody>
</table>

<p>&nbsp;</p>