When laravel session can be expired before their lifetime if used file or redis driver? as sometime my custom config working and sometime not

I used custom session driver with using config/session_custom.php file, sometime it is working and sometime not

in .env it’s like below

SESSION_CUSTOM_DRIVER=redis
SESSION_CUSTOM_LIFETIME=180
SESSION_CUSTOM_COOKIE="${APP_NAME}_custom_session"

and i used when like below when storing data into session

config(['session' => include config_path('session_custom.php)]);
Session::put('custom_cart_data', $data);

so sometimes it works and sometimes it get expired before 180 minutes