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

前端 未结 1 1450
北恋
北恋 2021-01-15 06:32

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 the

相关标签:
1条回答
  • 2021-01-15 07:16

    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. )

    0 讨论(0)
提交回复
热议问题