我本地試了一下,發現session過期後storage\framework\sessions內的檔案不會自動刪除?
小伙看你根骨奇佳,潜力无限,来学PHP伐。
會覆蓋,你看我找到了什麼
https://github.com/laravel/framework/blob/5.1/src/Illuminate/Session/M...
// Here we will see if this request hits the garbage collection lottery by hitting // the odds needed to perform garbage collection on any given request. If we do // hit it, we'll call this handler to let it delete all the expired sessions.
https://github.com/laravel/framework/blob/a423a55ed6601daebcbb75817de6...
gc 方法應該銷毀所有比給定 $lifetime UNIX 時間戳記還舊的 session 資料。
http://laravel-china.org/docs/5.0/extendinghttps://github.com/laravel/framework/blob/5925ed9bae03c86ea0d6902568ca...https://github.com/lara/fr a423a55ed6601daebcbb75817de6...
可以把session檔案存放目錄設定為/tmp,配置项为config/session.php的files
/tmp
config/session.php
files
會覆蓋,你看我找到了什麼
https://github.com/laravel/framework/blob/5.1/src/Illuminate/Session/M...
https://github.com/laravel/framework/blob/a423a55ed6601daebcbb75817de6...
http://laravel-china.org/docs/5.0/extending
https://github.com/laravel/framework/blob/5925ed9bae03c86ea0d6902568ca...
https://github.com/lara/fr a423a55ed6601daebcbb75817de6...
可以把session檔案存放目錄設定為
/tmp
,配置项为config/session.php
的files