What's the highest possible value for the laravel lifetime config variable in session.php

匆匆过客 提交于 2019-12-01 07:50:02

问题


By default laravel sessions expire after two hours, I know this is for security but I have a web app which has a mobile app(android webview). Users keep complaining that they need to login each time they come to the app. As a temporal solution I will like to know how I can set this variable to "forever". thanks in advance

 'lifetime' => 120

what I want

'lifetime' => infinity

回答1:


Max integer value in PHP is 2147483647 for 32 bit platform and Laravel multiplies lifetime value by 60.

So maximum lifetime value is 35791394 for 32-bit platform. It's 68 years, so it's kind of infinity for the session. )



来源:https://stackoverflow.com/questions/41333527/whats-the-highest-possible-value-for-the-laravel-lifetime-config-variable-in-se

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!