Saturation of the sessions directory: Too many files generated for the sessions

Issue

Is your /storage/framework/sessions/ folder full? Or do you want to reduce the number of generated files in this folder?

Solution

You have to fix it by removing all the sessions files, then, reduce the value of the variable SESSION_LIFETIME= in the /.env file and set to true the variable SESSION_EXPIRE_ON_CLOSE= like this:

SESSION_LIFETIME=120
SESSION_EXPIRE_ON_CLOSE=true

or

SESSION_LIFETIME=60
SESSION_EXPIRE_ON_CLOSE=true

NOTE: The SESSION_LIFETIME is in minutes, NOT in seconds