laravel 9 能否动态设置sessionlife的值?
我不使用.env的sessionlife而改用session.php的设定。这情境之下能否动态设定sessionlife?
/*
|--------------------------------------------------------------------------
| 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' => env('SESSION_LIFETIME', 120),