Laravel Sentry Auth Expired Time

时间:2016-01-18 09:23:35

标签: laravel

如何设置Sentry auth / token的过期时间?

我需要将时间设置为60分钟或1天。

是否可以在配置中设置?但是我找不到登录过期时间的设置。

1 个答案:

答案 0 :(得分:2)

转到config\session.php

lifetime值更改为任意分钟数。 Sentry将使用该值作为会话到期时间。

根据laravel文件:

| 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.