Laravel 非アクティブ時間設定 質問する

Laravel 非アクティブ時間設定 質問する

ユーザーがログインして非アクティブな場合、システムがユーザーを自動的にログアウトするまでに何秒かかりますか? この設定を変更するにはどうすればよいですか?

ベストアンサー1

認証を処理するためにセッション ドライバーを使用している場合は、ファイル内でアイドル セッションの有効期限を変更できます/app/config/session.php

/*
|--------------------------------------------------------------------------
| Session Lifetime
|--------------------------------------------------------------------------
|
| Here you may specify the number of minutes that you wish the session
| to be allowed to remain idle before it expires. If you want them
| to immediately expire on the browser closing, set that option.
|
*/

'lifetime' => 120,

'expire_on_close' => false,

おすすめ記事