When user logged-in and remains inactive, How many seconds after that system logouts the user automatically? How to change this setting?

推荐答案

Assuming you are using the session driver to handle your authentication, you can change the time period for an idle session to expire in the /app/config/session.php file.

/*
|--------------------------------------------------------------------------
| 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,

Laravel相关问答推荐

如何使中继器项目计数动态Laravel Filament V3?

当使用Craftable PRO时,Wysiwig是什么时候生成的?

Laravel REST API:如何将数据库列名与参数的另一个名称映射?

LARAVEL 从多个表中获取重复的行

分页计数(*)查询问题

通过 laravel 中的 url 传递多个字符串作为参数以从数据库中删除特定数据

FileViewFinder.php 第 137 行中的 Laravel 5 InvalidArgumentException:未找到视图 [.admin]

Laravel 重定向数据不工作

Laravel 5 日志(log)中的最大文件数

会话中的 Laravel 存储数组

无法安装 Laravel 包 - 干预图像

PHP 5.5,什么情况下PHP会导致很高的committed memory

SQLSTATE [42000]:语法错误或访问冲突:1066 Not unique table/alias on relationship

如何在 Eloquent 上设置条件关系

Eloquent 的 Model::query() 是什么意思?

Laravel 全部返回 ID 变为 0

如果 Laravel 中的值不为空,如何验证输入字段

在 laravel 中安装 vue 3.0

在哪里放置 Blade::extend

如果参数不是整数,如何以不同方式定义路由